Launchpad has imported 8 comments from the remote bug at https://bugs.kde.org/show_bug.cgi?id=389576.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2018-01-28T23:59:10+00:00 4aa7f31e wrote: I installed okular on Ubuntu 17.10 via snap (“sudo snap install okular”). The okular snap seems to use “strict” confinement and is thus unable to access files outside the user’s home directory even for reading. However, for a “viewer”-type application like okular, this is very problematic: – When downloading a file (e.g. PDF) in a browser like Firefox and choosing to open the file (instead of saving it somewhere in the home directory), the browser will typically place the file in /tmp/ and then open it using the default viewer for that file type. Since /tmp/ is outside the user’s home directory, okular is unable to open the file. – When opening documentation which is installed to system directories (e.g. /usr/share/…) along with its corresponding application, okular is likewise unable to open the documentation files for viewing. For example, the “texdoc” program for the TeX typesetting system looks up the documentation for a specified package (typically in PDF format) and runs the default (PDF) viewer to show the documentation. This fails if the okular snap application is set as the default PDF viewer. – Any files on mounted file systems, such as external storage (USB drives, SD cards, external hard drives…), network shares, etc., cannot be viewed with okular. Attempting to open any such files results in a dialog with the following error message: “Could not open file:///path/to/file”. This does not provide any explanation for the reason of the failure. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/0 ------------------------------------------------------------------------ On 2018-01-29T00:15:47+00:00 Albert Astals Cid wrote: Where did you download that snap package from? Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/1 ------------------------------------------------------------------------ On 2018-01-29T00:18:15+00:00 4aa7f31e wrote: (In reply to Albert Astals Cid from comment #1) > Where did you download that snap package from? Um, as I said, on Ubuntu 17.10 using “sudo snap install okular”. So from whatever source “snap” uses by default on a standard Ubuntu installation. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/2 ------------------------------------------------------------------------ On 2018-01-29T04:14:10+00:00 Nate-b wrote: Sounds like an issue with how the Snap is packaged. I'd recommend reporting this to Ubuntu. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/3 ------------------------------------------------------------------------ On 2018-01-29T12:30:21+00:00 4aa7f31e wrote: I’m sorry, but I was under the impression that the point of snaps was to have “universal” packages, which work on any distribution and are not customized for any particular one. “snap info okular” gives me the following output: name: okular summary: Universal document viewer publisher: kde contact: https://www.kde.org description: | Okular is a universal document viewer developed by KDE. Okular works on multiple platforms, including but not limited to Linux, Windows, Mac OS X, \*BSD, etc. Features: - Supported Formats: PDF, PS, Tiff, CHM, DjVu, Images, DVI, XPS, ODT, Fiction Book, Comic Book, Plucker, EPub, Fax - Sidebar with contents, thumbnails, reviews and bookmarks - Annotations support snap-id: SfUqQ280Y4bJ0k64qtBKTTXq5ml46tvQ commands: - okular tracking: stable installed: 16.12.3 (3) 7MB - refreshed: 2017-03-27 12:56:54 +0200 CEST channels: stable: 16.12.3 (3) 7MB - candidate: 17.04.3 (5) 8MB - beta: 17.04.3 (5) 8MB - edge: master+782a5fe (27) 5MB - I’ve also checked that the .snap file I got through “snap install okular” is identical to the one which can be downloaded here: https://uappexplorer.com/snap/ubuntu/okular The snap package lists “contact: https://www.kde.org”, which is why I opened a bug report here. If this is not an “official” okular snap package, then who is responsible for it? In this bug: https://bugs.kde.org/show_bug.cgi?id=378130 the reporter was in the same situation (“sudo snap install okular” on Ubuntu) and it seems that there was no problem resolving it at this level. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/4 ------------------------------------------------------------------------ On 2018-01-29T14:04:08+00:00 Nate-b wrote: Yes, but the devil's in the details. Snaps and Flatpaks are indeed supposed to be universal packages, but who packages them? Since this is a packaging but, that piece of information ins important. If we the developers package them, then we're responsible for the packaging. But if Ubuntu (or someone else) packages them, then they're responsible for the packaging. Bug 378130 was marked as RESOLVED UPSTREAM, you'll notice. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/5 ------------------------------------------------------------------------ On 2019-05-15T10:23:30+00:00 markling wrote: I also have this bug. I installed Okular via snap just a few weeks ago. I am unable to open files that are not under /home. It is notable that, when I use the Okular > File > Open dialog, I cannot either navigate to other folders or see pdfs in folders other than home. In particular, the Okular file dialog refuses to enter the /mnt or /media directories. It will go into /tmp, yet when it gets there it cannot see any .pdf file I've put there. In fact, it cannot see any file there. Nate's contribution implies the problem might be an upstream bug caused by snap failing to manage dependencies. And indeed I did find it necessary to follow the install steps given in Bug 378130 in order to install Okular properly. But fixing the dependencies by the procedure suggested does not fix this particular bug. Okular is still unable to open files that are not in my Home folder. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/13 ------------------------------------------------------------------------ On 2019-05-15T10:29:23+00:00 markling wrote: By the way, Okular will neither open a pdf if I navigate to it from my home folder by way of symbolic link to another drive. Neither will it open a direct symbolic link to a pdf in my /tmp directory, if i put that symbolic link in my /home folder, and attempt to open it there with Okular. Reply at: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1745999/comments/14 ** Changed in: kdegraphics Status: Unknown => Confirmed ** Bug watch added: KDE Bug Tracking System #378130 https://bugs.kde.org/show_bug.cgi?id=378130 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1745999 Title: Okular snap package cannot access files outside home directory To manage notifications about this bug go to: https://bugs.launchpad.net/kdegraphics/+bug/1745999/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs