Commit 1122f24
committed
Keep runtime files in default data_dir when --config points to default path
When the GUI launches the daemon with an explicit --config that resolves to the
platform default config path, AppPaths::resolve treated it as an override and
fell back to placing runtime/ next to the config file (e.g.
~/.config/linuxdo-accelerator/runtime/) instead of the default data_dir
(~/.local/share/linuxdo-accelerator/runtime/). That left two operations.log
files in different places depending on which command issued the request.
Treat --config as an explicit override only when the supplied path differs
from the default config path.1 parent 2303dd4 commit 1122f24
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments