Config / System+User.cfg

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
jacknotreally
Posts: 75
Joined: Mon Dec 14, 2009 9:49 am

Config / System+User.cfg

Post by jacknotreally »

Hi,

i would like to start FreeCAD with a different user.cfg and system.cfg, because i use FreeCAD from a USB Drive on several desktops and with different FreeCAD versions.
Sorry, i am not able to change it. I do not understand, how to use the command-line, the ResponseFile.txt and/or the FreeCAD.cfg file.
I have read the "Start up and Configuration" page .
Command-line params like -l and -P are working.

Cheers, Jack - not really
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Config / System+User.cfg

Post by wmayer »

Hi,

currently it's not possible to define user.cfg or system.cfg other than the default ones in the user's home directory. But you're right it makes pretty much sense to have this option and thus not to pollute the user's system.

AFAIK the response-file is a possibility to save all the FreeCAD command-line options into. So, once the above is working you can save the options in this file and set the response-file as program option.

Werner
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Config / System+User.cfg

Post by wmayer »

In rev. 2775 I have added a couple of new command line options:
--user-cfg to specify an arbitrary file to load/save user settings
--system-cfg to specify an arbitrary file to load/save system settings
--log-file to log to an arbitrary file
jacknotreally
Posts: 75
Joined: Mon Dec 14, 2009 9:49 am

Re: Config / System+User.cfg

Post by jacknotreally »

wmayer wrote:In rev. 2775 I have added a couple of new command line options:
--user-cfg to specify an arbitrary file to load/save user settings
--system-cfg to specify an arbitrary file to load/save system settings
--log-file to log to an arbitrary file
Hi werner,
cool. That works fine. Thanks.

Cheers and a happy new year
Jack- not really
User avatar
Aleks
Posts: 309
Joined: Sun Mar 08, 2020 5:27 pm
Location: Bonn, Germany
Contact:

Run FreeCAD with custom user configuration (user.cfg)

Post by Aleks »

I am trying to run FreeCAD with user configuration file that is not in the AppData directory, but in the FreeCAD directory.
I have found the option to run FreeCAD with the parameter "-u" or "--user-cfg". But when running FreeCAD with the local user.cfg file it overwrites it with the AppData user.cfg.

What am I doing wrong?

I run a batch file located in the same dir as FreeCAD.exe with the exact contents(the custom user.cfg is also located here):
FreeCAD --user-cfg user.cfg


FreeCAD version 0.18.4 (portable)
FreeCAD als Maschinenbauer in die Konstruktion und Fertigung integrieren. Schulung buchen: www.alsado.de/freecad-schulungen
User avatar
Aleks
Posts: 309
Joined: Sun Mar 08, 2020 5:27 pm
Location: Bonn, Germany
Contact:

Re: Config / System+User.cfg

Post by Aleks »

wmayer wrote: Thu Dec 31, 2009 2:41 pm In rev. 2775 I have added a couple of new command line options:
--user-cfg to specify an arbitrary file to load/save user settings
--system-cfg to specify an arbitrary file to load/save system settings
--log-file to log to an arbitrary file
How do I correctly use those parameters if i want to load a user.cfg located in the FreeCAD dir? I have tried it but it just overwrites the user.cfg located in FreeCAD with the one located in AppData.
FreeCAD als Maschinenbauer in die Konstruktion und Fertigung integrieren. Schulung buchen: www.alsado.de/freecad-schulungen
Smiling_user
Posts: 196
Joined: Tue Jul 28, 2020 7:31 am

Re: Config / System+User.cfg

Post by Smiling_user »

If on Windows:
Make a shortcut to FreeCAD.exe
Place it in a folder near to bin/FreeCAD.exe
In the properties add the "call":

Code: Select all

bin/Freecad.exe -u ../user2.cfg -s ../system2.cfg
Start FreeCAD with that shortcut. It will make new config files user2.cfg and system2.cfg near the shortcut.

For portability questions - welcome:
https://forum.freecadweb.org/viewtopic.php?f=4&t=49028
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Run FreeCAD with custom user configuration (user.cfg)

Post by chrisb »

You should try with an absolute path. And you should test it in 0.19.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Run FreeCAD with custom user configuration (user.cfg)

Post by chrisb »

Aleks wrote: Mon Sep 07, 2020 11:56 am I am trying to run FreeCAD with user configuration
Moved from other forum and merged topics. Don't crosspost.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Aleks
Posts: 309
Joined: Sun Mar 08, 2020 5:27 pm
Location: Bonn, Germany
Contact:

Re: Config / System+User.cfg

Post by Aleks »

Smiling_user wrote: Mon Sep 07, 2020 12:23 pm If on Windows:
Make a shortcut to FreeCAD.exe
Place it in a folder near to bin/FreeCAD.exe
In the properties add the "call":

Code: Select all

bin/Freecad.exe -u ../user2.cfg -s ../system2.cfg
Start FreeCAD with that shortcut. It will make new config files user2.cfg and system2.cfg near the shortcut.

For portability questions - welcome:
https://forum.freecadweb.org/viewtopic.php?f=4&t=49028
This is what I did. It does not work because FreeCAD overwrites it with the the AppData user.cgf. Cant I just load an existing user.cfg file?
FreeCAD als Maschinenbauer in die Konstruktion und Fertigung integrieren. Schulung buchen: www.alsado.de/freecad-schulungen
Post Reply