Skip to content

Commit 8f80018

Browse files
committed
fix: set config file locations for windows, mac, and linux
1 parent 71a51be commit 8f80018

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.8

tagstudio/src/qt/ts_qt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ def __init__(self, backend, args):
174174
logger.info("Using Config File", path=path)
175175
self.settings = TSSettings.read_settings(path)
176176
else:
177-
path = Path.home() / ".TagStudio" / "config.toml"
177+
path = ""
178+
if sys.platform == "win32":
179+
path = Path.home() / "AppData" / "Roaming" / "TagStudio" / "config.toml"
180+
else: # "linux" and "darwin" should use the same config directory
181+
path = Path.home() / ".config" / "TagStudio" / "config.toml"
182+
178183
self.settings = TSSettings.read_settings(path)
179184
logger.info(
180185
"Config File not specified, using default one",

0 commit comments

Comments
 (0)