View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002956||FreeCAD||Feature||public||2017-03-08 11:47||2020-07-15 08:19|
|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|
||@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
||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.
|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||View Revisions|
|2018-10-24 12:05||Kunda1||Note Added: 0012088|
|2018-10-24 14:04||Kunda1||Additional Information Updated||View Revisions|
|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|