Skip to content

Commit d030837

Browse files
committed
Resolves clockworks
- fallback will use the existing applet-created clockwork path in .config - fallback does not handle deletion of temp files - this is mitigated by all clockwork files being kept together
1 parent ffa29d4 commit d030837

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎budgie-clockworks/cwtools.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def get(command):
3636
hrs_path = os.path.join(settingsdir, "hrs")
3737
mins_path = os.path.join(settingsdir, "mins")
3838
misc_dir = os.path.join(settingsdir, "misc")
39-
user = os.environ["USER"]
40-
tmp = os.path.join("/tmp", user + "_clockworks")
39+
tmpdir = os.getenv("XDG_RUNTIME_DIR") if "XDG_RUNTIME_DIR" in os.environ else settingsdir
40+
tmp = os.path.join(tmpdir, ".clockworks")
4141
clock_datafile = os.path.join(settingsdir, "clockdata")
4242
key = "org.ubuntubudgie.plugins.budgie-clockworks"
4343
subkeys = ["background", "hour", "minute"]

0 commit comments

Comments
 (0)