Where is the FreeCAD config files located in snap version

Report observations made with the new Toponaming branch.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ngocminhdao88
Posts: 73
Joined: Wed Nov 11, 2020 10:43 am

Where is the FreeCAD config files located in snap version

Post by ngocminhdao88 »

Hi,

i have some trouble with write permission with FreeCAD snap version when working in Path Workbench, namely when adding new tool to the library.

Code: Select all

23:25:15  Traceback (most recent call last):
23:25:15    File "/snap/freecad-realthunder/27/usr/Mod/Path/PathScripts/PathToolBitLibraryGui.py", line 623, in libraryNew
23:25:15      with open(path, 'w') as fp:
23:25:15  PermissionError: [Errno 13] Permission denied: '.fctl'
I copied the default tool library to my workspace folder and want to point FreeCAD to it. But i don't find the config files for snap version anywhere. For AppImage version, the file should be in ~/.FreeCAD or ~/.config/FreeCAD.

Can someone on Linux help me out please?

My FreeCAD version:
OS: Ubuntu Core 20 (i3/i3)
Word size of FreeCAD: 64-bit
Version: 2022.501.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.04.30-edge)
Hash: 36be73c9b78b77e544f9522c220a9b929715ce90
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.1
Locale: English/United States (en_US)
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Where is the FreeCAD config files located in snap version

Post by jpg87 »

ngocminhdao88 wrote: Wed May 04, 2022 9:35 pm...
On my machine

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 2022.501.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.04.30-edge)
Hash: 36be73c9b78b77e544f9522c220a9b929715ce90
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.1
Locale: French/France (fr_FR)
the files are in home/snap/freecad-realthunder/common/.FreeCAD
My website : http://help-freecad-jpg87.fr updated 2023/11/06
ngocminhdao88
Posts: 73
Joined: Wed Nov 11, 2020 10:43 am

Re: Where is the FreeCAD config files located in snap version

Post by ngocminhdao88 »

jpg87 wrote: Thu May 05, 2022 7:08 am ...
Thank you, i found it. But in user or system config file, i don't see the entry for Path tool library. Hence my issue with wire permission still remain. I will try to post this on RT github page.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Where is the FreeCAD config files located in snap version

Post by Kunda1 »

You can quickly check this via the CLI

Code: Select all

$ freecad-ppd.cmd --get-config UserAppData
JFYI, try:

Code: Select all

$ freecad-ppd.cmd --dump-config
Edit: for realthunder's snap just switch out 'ppd' for 'realthunder'
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply