Bug 405713

Summary: Enable "removable-media" plug for snap
Product: [KDE Neon] neon Reporter: p.kushwaha97+bugzilla
Component: SnapsAssignee: Harald Sitter <sitter>
Status: RESOLVED FIXED    
Severity: normal CC: merlijn.sebrechts, neon-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description p.kushwaha97+bugzilla 2019-03-21 08:45:14 UTC
SUMMARY

Currently, okular installed via snap can only access documents in user's home directory. But often you want to access files on an external hard drive or usb drive. Even if it's not enabled by default

STEPS TO REPRODUCE
1. Be on Ubuntu 16.04 or be using nautilus 
2. Install okular via snap
3. Go to a pdf file on a mounted drive
4. Right click and select "open with okular"

OBSERVED RESULT

A cryptic error message which looks like "cannot access file /run/....pdf"


EXPECTED RESULT

Be able to open the file

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Ubuntu 16.04
KDE Plasma Version: Whatever is installed by snap for Okular 18.12.2
KDE Frameworks Version: Same as above
Qt Version: Same as above

ADDITIONAL INFORMATION

Just enabling this plug in yaml file should do it. Users who need it can then also run `sudo snap connect okular:removable-media` to enable this functionality
Comment 1 p.kushwaha97+bugzilla 2019-03-21 08:47:28 UTC
I tried to change the product to okular in this bug but there's no option for version 18.12.2
Comment 2 Harald Sitter 2019-03-21 12:36:59 UTC
I feel like desktop portals are the more appropriate solution for this. Unfortunately they continue to be stuck in security review for backports AFAIK.
Comment 3 merlijn.sebrechts 2020-07-29 15:26:11 UTC
This is now fixed, removable-media was added to okular and is now auto-connected. Thanks for reporting the bug!