FreeCAD / FreeCAD-snap

The official Snap package of the FreeCAD project
https://snapcraft.io/freecad
9 stars 10 forks source link

shared config folder betweeen appimage and snap FreeCAD packages #25

Closed bambukouk closed 2 years ago

bambukouk commented 2 years ago

https://forum.freecadweb.org/viewtopic.php?f=3&t=69534

I am not getting much traction the forum... (have asked similar question before https://forum.freecadweb.org/viewtopic.php?f=3&t=68643 again with no solution)

so in desperation I am bothering @ppd you here (sorry)

Is there a way to keep configuration of an appimage FreeCAD package and snap FreeCAD package the same?

ppd commented 2 years ago

If you can set environment variables for both, you could set FREECAD_USER_DATA to the same directory. The directory must be accessible for the snap though, so it shouldn't be in a hidden top level directory under $HOME. E.g. /home/user/FreeCAD would work.

bambukouk commented 2 years ago

Thank you! I started reading... env_variables

Not quite clear how to go about changing things... I assume it is something like this?: change_settings

I think I have a headache .... will take a rest now :+1:

ppd commented 2 years ago

If you have desktop files for your AppImage & Snap installations, you can modify them to have them set the environment variables: https://wiki.archlinux.org/title/desktop_entries#Modify_environment_variables

Use FREECAD_USER_DATA because the snap overwrites FREECAD_USER_HOME.

bambukouk commented 2 years ago

That was the bit I was missing 👍 Yes, I have both .desktop files (having created appimage one myself, and having copied snap one to create OS integration) so should be able to do something. Will play with it over weekend and let you know the result.

Thank you again!