0.19 access to mounted disk on Ubuntu

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
Labortechniker
Posts: 2
Joined: Tue Jul 27, 2021 3:48 pm

0.19 access to mounted disk on Ubuntu

Post by Labortechniker »

First of all thank you for the great software that I use every day!
I recently updated Freecad on my Ubuntu 20.04.2 LTS from 0.18.4 to 0.19 via ppa:stable.

It starts as it should but I face a problem I can not solve as a Linux newbie:
1) In the file browser (File->Open dialog) I have no access to my mounted disk /mnt/... that is I dont see my disk device there.
2) If I overcome the browsing issue by using the OS browser and choose "open with" to open my .FCSTD I get the error
Exception while processing file: /mnt/XXX/XXX/XXX.FCStd [Invalid project file: (XXX is hiding the actual path and file name due to company policies)
3) If I drag and drop the file to Freecad I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: Invalid project file: /mnt/XXX/XXX/XXX.FCStd

If I copy the File to the home folder it opens just fine.
Setting/ adding DontUseNativeDialog=true in the Parameter Editor does not change this behavior.
I suspect QT/ Freecad has some access right issues here. But as said I am a Linux newbie and have no clue where to start.


OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Unknown
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)

Thank you in advance...

EDIT: Rolled back to 0.18 since I need to open my files. If anyone has a fix... let me know.
Labortechniker
Posts: 2
Joined: Tue Jul 27, 2021 3:48 pm

Re: 0.19 access to mounted disk on Ubuntu

Post by Labortechniker »

Just in case anyone faces the same problem:
It turned out to be an issue using the snap-installer version of FreeCad (also affects V20.XX).

sudo snap connect freecad:removable-media

did the trick, allowing freecad to access all disks/ USB-sticks in /mnt/

kind regards, Labortechniker
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: 0.19 access to mounted disk on Ubuntu

Post by thomas-neemann »

Labortechniker wrote: Tue Jul 27, 2021 4:32 pm ...
starting freecad with sudo should also "fix" the problem
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: 0.19 access to mounted disk on Ubuntu

Post by adrianinsaval »

running applications as sudo for mundane stuff like this is very bad practice (specially considering FreeCAD loads a ton of python scripts) so please don't go recommending that as a "fix", plus I don't know if you even can launch the snap version as root.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: 0.19 access to mounted disk on Ubuntu

Post by thomas-neemann »

adrianinsaval wrote: Mon Sep 26, 2022 8:15 pm running applications as sudo for mundane stuff like this is very bad practice (specially considering FreeCAD loads a ton of python scripts) so please don't go recommending that as a "fix", plus I don't know if you even can launch the snap version as root.
thanks for the hint. I should have added that I recommend always using productive systems offline, then it's not a security problem
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply