Make config and stylesheet files non-executable
There is no need to have the executable bit on for the config and stylesheet files as they are not run by themselves.
This commit is contained in:
parent
de8fc941a6
commit
1d3f804642
|
@ -370,7 +370,7 @@ def initialize_safeeyes():
|
||||||
|
|
||||||
# Copy the safeeyes.json
|
# Copy the safeeyes.json
|
||||||
shutil.copy2(SYSTEM_CONFIG_FILE_PATH, CONFIG_FILE_PATH)
|
shutil.copy2(SYSTEM_CONFIG_FILE_PATH, CONFIG_FILE_PATH)
|
||||||
os.chmod(CONFIG_FILE_PATH, 0o777)
|
os.chmod(CONFIG_FILE_PATH, 0o666)
|
||||||
|
|
||||||
create_user_stylesheet_if_missing()
|
create_user_stylesheet_if_missing()
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ def create_user_stylesheet_if_missing():
|
||||||
# Copy the new style sheet
|
# Copy the new style sheet
|
||||||
if not os.path.isfile(STYLE_SHEET_PATH):
|
if not os.path.isfile(STYLE_SHEET_PATH):
|
||||||
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
||||||
os.chmod(STYLE_SHEET_PATH, 0o777)
|
os.chmod(STYLE_SHEET_PATH, 0o666)
|
||||||
|
|
||||||
def create_startup_entry(force=False):
|
def create_startup_entry(force=False):
|
||||||
"""
|
"""
|
||||||
|
@ -493,8 +493,8 @@ def reset_config():
|
||||||
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
||||||
|
|
||||||
# Add write permission (e.g. if original file was stored in /nix/store)
|
# Add write permission (e.g. if original file was stored in /nix/store)
|
||||||
os.chmod(CONFIG_FILE_PATH, 0o777)
|
os.chmod(CONFIG_FILE_PATH, 0o666)
|
||||||
os.chmod(STYLE_SHEET_PATH, 0o777)
|
os.chmod(STYLE_SHEET_PATH, 0o666)
|
||||||
|
|
||||||
create_startup_entry()
|
create_startup_entry()
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ def replace_style_sheet():
|
||||||
"""
|
"""
|
||||||
delete(STYLE_SHEET_PATH)
|
delete(STYLE_SHEET_PATH)
|
||||||
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH)
|
||||||
os.chmod(STYLE_SHEET_PATH, 0o777)
|
os.chmod(STYLE_SHEET_PATH, 0o666)
|
||||||
|
|
||||||
|
|
||||||
def initialize_logging(debug):
|
def initialize_logging(debug):
|
||||||
|
|
Loading…
Reference in New Issue