realthunder / FreeCAD

Link branch FreeCAD
Other
798 stars 46 forks source link

Snap verions on Linux hardly usable due to restrictive "confinment". #961

Open sztejkat opened 9 months ago

sztejkat commented 9 months ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

[code]
OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 2024.104.0.38929 (Git) Snap 124
Build type: Release
Branch: tag: 20240104stable
Hash: 975453f6aa33093edbcc835760d7a65123059b98
Python 3.8.10, Qt 5.15.7, Coin 4.0.1, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
[/code]

Subproject(s) affected?

None

Problem description

Steps to reproduce. A)

  1. Create symbolic link to some folder which is not in /home/folder and place it in your /home/ folder.
  2. Run FreeCad Link Branch.
  3. Go to "Open" dialog.
  4. There is no symlinked folders there.

B)

  1. Copy some file to some place outside /home/... folder, ie. /var/ or /tmp
  2. Run FreeCad Link Branch.
  3. Go to "Open" dialog.
  4. There is no way to get to that folder.

C)

  1. Copy some file to some place outside /home/... folder, ie. /var/ or /tmp
  2. Run FreeCad Link Branch from command line passing this file as an argument.
  3. Observe confusing error "file does not exist" (hey, file DO exist!).
  4. Observe that "open" now points to /var/lib/snapd/void and there is no way to select anything.

This seems to be snap issue, because the entire "open" dialog is unusable. All "quick" folders are grayed out, there is no way to open it with a file from outside the user home folder. If you can confirm that it is a "snap" problem, then please try to avoid snap as much as possible. This is a real pain to not be able to use all folders I have access to to store my files, plus the forced update policy of snap on experimental channel is asking for troubles.

Did I mention missing icons in "open" dialog? They probably also come from folders blocked by snap "confinement".

Thanks for this excellent program, I used it on Windows a lot and Your branch is much more aimed at actual user needs than official FreeCad.

P.S. Feel free to close this issue if it is really the snap "future" taking action.

Anything else?

No response

Code of Conduct

sztejkat commented 9 months ago

Tested that Flatpak version CAN access all desired folders, but "open" dialog is unusable. All folders on the left pane are grayed out and icons are missing too.

sztejkat commented 9 months ago

Tested that Appimage version works as expected. Can open any file from any location. The only moment it complains is when it installs py-slvs (informs that install failed) but later seems to work ok.

It seems that this method of distribution gives best effects at the cost of user needing to set-up own "icons" to run program.