How to set the working directory for FreeCad?

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!
Post Reply
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

How to set the working directory for FreeCad?

Post by Giulio Buccini »

Hello,

I'm using the 0.19 Appimage version.
every time I start Freecad from the scratch and try to load a saved file it always point to an folder that I'm not using since many months.
How to change this very annoying behaviour?

I searched across the preferences, but seems that there is no option for that... :(

P.S.
After opening the first file all of the successive "Open file" operation are correctly pointing to the last used directory. But, again, if you close Freecad and start it again, then he will forget the last opened file and directory...


-------------------------------------------------
OS: Ubuntu 16.04.7 LTS (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git) AppImage
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
User avatar
thomas-neemann
Veteran
Posts: 11799
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: How to set the working directory for FreeCad?

Post by thomas-neemann »

Giulio Buccini wrote: Mon Jan 18, 2021 2:36 pm
for me it refers to the folder in which the app image is located. I think that's very practical because from then on I also have my working directory. files can also be checked out from a file server

OS: Ubuntu 18.04.5 LTS (ubuntu:GNOME/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23578 (Git) AppImage
Build type: Release
Branch: master
Hash: 50c3cbf00579dc4941ca743c25720d016b0453ce
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the working directory for FreeCad?

Post by Giulio Buccini »

No no.
Every Appimage I downloaded is pointing to /home/giulio/cadbook when I try to open a file.
The Appimage is stored in /home/giulio/appimages/ instead.

Note
The old 0.18 version (no Appimage) is always pointing to /usr/lib/freecad when I try to open a file. :?

P.S.
I don't know from where come "/home/giulio/cadbook". I searched across the user.cfg file but I haven't found anything about that.
Last edited by Giulio Buccini on Mon Jan 18, 2021 3:00 pm, edited 1 time in total.
User avatar
thomas-neemann
Veteran
Posts: 11799
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: How to set the working directory for FreeCad?

Post by thomas-neemann »

Giulio Buccini wrote: Mon Jan 18, 2021 2:54 pm
you could try to rename the configuration files
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the working directory for FreeCad?

Post by Giulio Buccini »

?
Can you explain it better? :?
davidosterberg
Posts: 529
Joined: Fri Sep 18, 2020 5:40 pm

Re: How to set the working directory for FreeCad?

Post by davidosterberg »

The App image starts in the current working path. If you start the Appimage from the console: cd into your desired folder and start the Appimage from there.

If you are like me and you want FreeCAD to always start in your project folder, without messing with the terminal, you can create a launch file for your applications menu. On KDE you can edit the start menu and add a new item. For me the Appimage for FreeCAD mainline is called FreeCAD Std. For the launcher you can set up the working directory. For me it looks like this:
working_dir.png
working_dir.png (67.95 KiB) Viewed 678 times
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the working directory for FreeCad?

Post by Giulio Buccini »

That worked!

Thanks. ;)
Post Reply