How to change the default ~/.FreeCAD directory? (SOLVED)

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
AvgJoe
Posts: 42
Joined: Wed Oct 01, 2014 2:23 am

How to change the default ~/.FreeCAD directory? (SOLVED)

Post by AvgJoe »

Currently I`m using two versions of FreeCAD appimages on an ubuntu machine. The 0.16 and the 0.17. Both read the same config files in the ~/.FreeCAD directory. I would like to have dedicated configuration files for each versions instead.
So is there any way to split the default location to ~/.FreeCAD016 and ~/.FreeCAD017 ?
Last edited by AvgJoe on Sun Apr 14, 2019 4:54 pm, edited 1 time in total.
wmayer
Founder
Posts: 20309
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: How to change the default ~/.FreeCAD directory?

Post by wmayer »

You can use the command line parameter "-u" followed by a file path where to store a different user config.
E.g: ./FreeCAD -u ~/.FreeCAD/user016.cfg
AvgJoe
Posts: 42
Joined: Wed Oct 01, 2014 2:23 am

Re: How to change the default ~/.FreeCAD directory?

Post by AvgJoe »

Works perfect but from terminal only. How to do the same using a desktop link?
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: How to change the default ~/.FreeCAD directory?

Post by chrisb »

Which OS are you on? On Windows you can pass a parameter to be entered in the properties of the icon.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: How to change the default ~/.FreeCAD directory?

Post by NormandC »

chrisb wrote: Sun Apr 07, 2019 5:55 pm Which OS are you on?
Uh, Chris...

AvgJoe wrote: Thu Apr 04, 2019 5:55 pm Currently I`m using two versions of FreeCAD appimages on an ubuntu machine.
;)

AvgJoe wrote: Sun Apr 07, 2019 5:32 pm How to do the same using a desktop link?
I'm guessing you create a script, then create a desktop launcher that calls this script. You may try to edit the AppImage launcher, but if you update the AppImage, the launcher may revert to its original state.

This script would be a text file that contains this:

Code: Select all

#!/bin/bash
./FreeCAD -u ~/.FreeCAD/user017.cfg
Where you presumably replace "./FreeCAD" with the full path of the AppImage.
Post Reply