mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-11 06:07:53 +00:00
Merge pull request #209 from sometoby/patch-1
Create XDG_CONFIG_HOME with safe permissions
This commit is contained in:
commit
75289a2570
@ -352,7 +352,7 @@ class ConfigurationGetter(object):
|
|||||||
def _getXdgConfigHome(self):
|
def _getXdgConfigHome(self):
|
||||||
path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser('~/.config'))
|
path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser('~/.config'))
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
os.mkdir(path, 0o755)
|
os.mkdir(path, 0o700)
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def _parseConfigFile(self, iniPath, createConfig=True):
|
def _parseConfigFile(self, iniPath, createConfig=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user