Skip to content

Commit 9a3740e

Browse files
srounceUltrawipf
authored andcommitted
Use XDG_CONFIG_HOME on Linux
On Linux, profiles.json will now be stored in a directory called openffboard under $XDG_CONFIG_HOME unless there is already a profiles.json in their install directory. In the case that XDG_CONFIG_HOME is not set $HOME/.config be used in its place.
1 parent bc841ed commit 9a3740e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profile_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def create_or_update_profile_file(self, create: bool = False) -> bool:
188188
self.log("Profile: profile file created")
189189

190190
# Ensure the parent directory exists
191-
os.makedirs(get_config_dir_path(), exist_ok=True)
191+
os.makedirs(get_config_dir_path(self.__PROFILES_FILENAME), exist_ok=True)
192192

193193
try:
194194
with open(self.__PROFILES_FILEPATH, "w", encoding="utf_8") as f:

0 commit comments

Comments
 (0)