FreeCAD / FreeCAD-snap

The official Snap package of the FreeCAD project
https://snapcraft.io/freecad
8 stars 9 forks source link

Permission issues in python. Unable to launch sub-processes (other apps) #87

Closed vvranjek closed 6 days ago

vvranjek commented 1 year ago

Is there an existing issue for this?

Version

0.20 (Release)

Full version info

[code]
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git) Snap 517
Build type: Release
Branch: tag: 0.20.2
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * 3DfindIT 1.2.0
  * slic3r-tools

[/code]

Subproject(s) affected?

None

Problem description

Running other programs using python doesn't work (permission problems). Many addons as well as python console is effected by this and this is not something addon devs can fix. FreeCad needs permissions to do this when installed via Snap on Ubuntu.

To reproduce:

# Install slic3r on ubuntu
sudo apt install slice3r 

run the following in the python console from FreeCad

>>> import subprocess
>>> subprocess.Popen('/usr/bin/slic3r')

Application fails to run. It opens successfully if run from another (non-FreeCad) python console.

A practical example of this are several addons for 3D printing that prepare and export parts in a correct format and launches them in 3D printer software.

Thanks!

Anything else?

No response

Code of Conduct

adrianinsaval commented 1 year ago

sorry but this is a limitation of the snap packaging system, the program is sanboxed and can't access other applications outside of it's sandbox, I don't think there's anything we can do.

luzpaz commented 1 year ago

Transferred to FreeCAD Snap repo

furgo16 commented 2 weeks ago

@luzpaz can this issue be closed, as sandboxing is an inherent feature of snap packages, and thus a "won't fix"?