View Issue Details

IDProjectCategoryView StatusLast Update
0002956FreeCADFeaturepublic2021-11-11 13:08
Reportergueux Assigned Towmayer  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.16 
Target Version0.20Fixed in Version0.20 
Summary0002956: wishlist: use $XDG_DATA_HOME/freecad for system.cfg and user.cfg
DescriptionEvery 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 InformationSpecification: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
TagsNo tags attached.
FreeCAD Information

Activities

Kunda1

2017-04-28 20:17

administrator   ~0008816

@wmayer just putting this on your radar since this looks like some straggling issues not implemented with the previous XDG commits.

Kunda1

2018-10-19 13:33

administrator   ~0012070

Last edited: 2018-10-19 13:34

Intresting PR: FreeCAD Pull Request 1732

Kunda1

2018-10-24 12:05

administrator   ~0012088

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=31787

ifohancroft

2019-05-31 23:23

reporter   ~0013133

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.

wmayer

2020-02-03 12:22

administrator   ~0014139

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

Avamander

2020-07-10 12:59

reporter   ~0014641

Just noticed this as well. Would really appreciate if the defaults didn't put something in my home folder without a very good reason.

markus23

2020-07-15 08:19

reporter   ~0014649

You are mixing up about three different issues in this issue:
  1. non-creating of files unless needed (e.g. actually downloading a Mod or changing settings)
  2. making the config files XDG compliant
  3. making FreeCAD XDG compliant

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.

Kunda1

2021-08-18 03:15

administrator   ~0015826

What's left with this ticket?

wmayer

2021-11-08 23:22

administrator   ~0016021

https://github.com/FreeCAD/FreeCAD/commit/2cc570757144422a189b9881e650c3878ec58b13 implements the XDG_CACHE_HOME

wmayer

2021-11-11 13:08

administrator   ~0016024

https://github.com/FreeCAD/FreeCAD/commit/e7e2994ba0ee04be61dc97aa161a51681cd95bbb

Issue History

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