XDG Base Directory Specification
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: XDG Base Directory Specification
Do you have that path specified as the custom user macro directory in your user.cfg file?
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: XDG Base Directory Specification
What parameter should I check? I remember adding the macro path for icons so I can put some macros in toolbars with icons located in the macro folder, would that affect that?
Re: XDG Base Directory Specification
Preferences/Macro/MacroPath
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: XDG Base Directory Specification
Ok, it's set to ~/.FreeCAD/Macro but I don't remember ever setting that up manually, any idea how it got set? Should that be automatically changed by FreeCAD? Does anybody else even have this parameter set without their intervention?
Re: XDG Base Directory Specification
It's set every time you open the Macro dialog (DlgMacroExecuteImp) -- my guess is it's unintentional, the code that does it is in the function that handles changes to the fileChooser (on_fileChooser_fileNameChanged). The problem is that signal is getting emitted when the filename is set programmatically at the launch of the dialog. I'm guessing that was not intended.
Re: XDG Base Directory Specification
git commit d5726bd7af5f9a restores /tmp for temporary files (App.getTempPath()) and adds a new function to access the path to the cache (App.getUserCachePath()). At the moment only the document's transient directory will be created in the cache directory.
With git commit 973642285e1b00d8 a periodic check at program start is performed to check the size of the cache directory and if it exceeds a certain limit a dialog pops up to allow the user to clean it up.
The check is done once per week because it could take quite a while and the limit at the moment is 1GB. Both values are hard-coded and the next step is to implement to make it configurable.
With git commit 973642285e1b00d8 a periodic check at program start is performed to check the size of the cache directory and if it exceeds a certain limit a dialog pops up to allow the user to clean it up.
The check is done once per week because it could take quite a while and the limit at the moment is 1GB. Both values are hard-coded and the next step is to implement to make it configurable.
Re: XDG Base Directory Specification
I'm now testing a modification to PR 5131 so that the Addon Manager uses the new cache location for its cached metadata and README files, that should be ready to go soon.
Re: XDG Base Directory Specification
Many many thanks! I no access to FreeCAD now, but when i have it, i will test it.wmayer wrote: ↑Mon Nov 15, 2021 10:57 pm git commit d5726bd7af5f9a
.....
git commit 973642285e1b00d8
Greetings
user1234