View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002956 | FreeCAD | Feature | public | 2017-03-08 11:47 | 2021-11-11 13:08 |
Reporter | gueux | Assigned To | wmayer | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.16 | ||||
Target Version | 0.20 | Fixed in Version | 0.20 | ||
Summary | 0002956: wishlist: use $XDG_DATA_HOME/freecad for system.cfg and user.cfg | ||||
Description | Every time I open FreeCAD, it creates ~/.FreeCAD/, and when I close it, it creates ~/.FreeCAD/system.cfg and ~/.FreeCAD/user.cfg. As $XDG_CONFIG_HOME is already used, it would be great if FreeCAD could use $XDG_DATA_HOME, too. | ||||
Additional Information | Specification: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
@wmayer just putting this on your radar since this looks like some straggling issues not implemented with the previous XDG commits. |
|
Intresting PR: FreeCAD Pull Request 1732 |
|
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=31787 |
|
While I do agree with this ticket, it is a bit incorrect: system.cfg and user.cfg should use $XDG_CONFIG_HOME, not $XDG_DATA_HOME, as they are user specific config files, not data files. |
|
Also implement XDG_CACHE_HOME to store recovery files because /tmp is not the best choice as all files are lost after a reboot. For macOS see: https://stackoverflow.com/questions/3373948/equivalents-of-xdg-config-home-and-xdg-data-home-on-mac-os-x Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=43026 |
|
Just noticed this as well. Would really appreciate if the defaults didn't put something in my home folder without a very good reason. |
|
You are mixing up about three different issues in this issue:
2 is a subset of 3, to fully make 3 you also need to move Macro, cookies, Mod and AddonManager. For 1+2 Elektra would help, next to many other features Elektra would introduce, see https://forum.freecadweb.org/viewtopic.php?f=10&t=46750 Furthermore, the tag #lowhangingfruit is misleading. It might be easy to implement but the implications for current users are drastic (like losing all the current config and/or writing data to places which are not backed up) if you do not have a very careful migration strategy. |
|
What's left with this ticket? |
|
https://github.com/FreeCAD/FreeCAD/commit/2cc570757144422a189b9881e650c3878ec58b13 implements the XDG_CACHE_HOME |
|
https://github.com/FreeCAD/FreeCAD/commit/e7e2994ba0ee04be61dc97aa161a51681cd95bbb |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-08 11:47 | gueux | New Issue | |
2017-04-28 20:17 | Kunda1 | Note Added: 0008816 | |
2017-04-29 11:57 | Kunda1 | Tag Attached: #lowhangingfruit | |
2017-09-15 20:17 | wmayer | Assigned To | => wmayer |
2017-09-15 20:17 | wmayer | Status | new => assigned |
2018-10-19 13:33 | Kunda1 | Note Added: 0012070 | |
2018-10-19 13:34 | Kunda1 | Note Edited: 0012070 | |
2018-10-24 12:05 | Kunda1 | Note Added: 0012088 | |
2018-10-24 14:04 | Kunda1 | Additional Information Updated | |
2019-02-24 18:28 | wmayer | Target Version | => 0.19 |
2019-05-31 23:23 | ifohancroft | Note Added: 0013133 | |
2020-02-03 12:22 | wmayer | Note Added: 0014139 | |
2020-07-10 12:59 | Avamander | Note Added: 0014641 | |
2020-07-15 08:19 | markus23 | Note Added: 0014649 | |
2021-02-06 06:49 | abdullah | Target Version | => 0.20 |
2021-08-18 03:15 | Kunda1 | Tag Detached: #lowhangingfruit | |
2021-08-18 03:15 | Kunda1 | Note Added: 0015826 | |
2021-11-08 23:22 | wmayer | Note Added: 0016021 | |
2021-11-11 13:08 | wmayer | Status | assigned => closed |
2021-11-11 13:08 | wmayer | Resolution | open => fixed |
2021-11-11 13:08 | wmayer | Fixed in Version | => 0.20 |
2021-11-11 13:08 | wmayer | Note Added: 0016024 |