-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snap package lacks permissions for removable devices #58
Comments
This would have to be granted by the snap admins/reviewers following a request from us on the forums. I don't think we qualify for this because it's not a key use case of FreeCAD to open files from removable media. I quote:
(https://forum.snapcraft.io/t/kdenlive-removable-media/16088/3) |
Opening files is not considered "key use case"? |
I quote again:
Opening files is a use case, but not from removable devices. Usually, this would be handled via the portal, which can proxy files from removable devices without needing this interface connected. But the combo portal + FreeCAD has other problems, unfortunately. |
Ok, since it seems to go against the policy to have these permissions by default I will just close the issue. Regarding the portal, I guess that would have been the ideal solution, what issues does it have? |
The portal gives the snap or flatpak access by proxying the requested file via a fuse mount if the snap wouldn't have access normally. The problem is that FreeCAD then gets a path like
On more modern hosts, the portal is more clever and gives the snap the real path if the snap has access anyway. For example, a file in $HOME would be passed as Of course, there's development going on in both the portal and the snap ecosystem. The portal will gain support for proxying entire directories, and snapd will eventually also support prompting users to enable a certain interface, like Android or iOS do. To put in a nutshell, FreeCAD is a traditional application whose assumptions clash with the expectations of the portal developers, who had simpler use cases in mind. Both could be adapted, but it's not as easy as it might seem on the first glance. |
In that case we can keep this ticket open |
From my understanding this requires either changes in FreeCAD source itself (and I don't know if it's even possible to solve/improve this on the FreeCAD side) or upstream in snap/desktop portals so it can't be dealt with in packaging so having the issue here is not much useful IMO. |
Also the desktop portal problem is a separate more generalized thing than just usb devices so if you want to track that IMO it's best to use a new issue to avoid confusion. |
ppd, thoughts ? |
We could make this issue an actionable one for us by discussing whether it makes sense to mitigate the issue by prompting the user to enable |
Reported in https://forum.freecadweb.org/viewtopic.php?p=627466#p627466 and https://forum.freecadweb.org/viewtopic.php?p=628023#p628023 manually giving permissions through the software center fixes the issue, can the package have this permission by default?
The text was updated successfully, but these errors were encountered: