1
0
mirror of https://github.com/Syncplay/syncplay synced 2025-03-11 06:07:53 +00:00

Merge pull request from sometoby/patch-1

Create XDG_CONFIG_HOME with safe permissions
This commit is contained in:
Etoh 2018-12-07 18:42:57 +00:00 committed by GitHub
commit 75289a2570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,7 +352,7 @@ class ConfigurationGetter(object):
def _getXdgConfigHome(self):
path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser('~/.config'))
if not os.path.isdir(path):
os.mkdir(path, 0o755)
os.mkdir(path, 0o700)
return path
def _parseConfigFile(self, iniPath, createConfig=True):