Whenever I try opening a PDF file in a mounted usb drive using Okular, it gives me this error:
Could not open file:///media/walkeknow/F8A2-34D9/example.pdf
I have installed okular using sudo snap install okular
because the apt-get
method does not render the in-app icons for some reason on my system.
which okular
command gives: /snap/bin/okular
The files open using Ubuntu's default Document Viewer evince. However I prefer using Okular. Is there any fix to this?
Snap problem
Okular does not support removable media while installed as Snap. You should remove it
In other words it does not support
snap connect okular:removable-media
plug.Okular from APT (deb-package)
Installation
Then install deb-packaged version instead with
Set-up look and feel
To get normal look and feel you need to install Breeze KDE theme with
and select it from
qt5ct
withthen switch to Icon Theme tab and select Breeze here and hit Save:
To make changes permanent add this line to your
~/.profile
withthen reboot and use Okular with files from anywhere:
Note: I tested the method above on Ubuntu 18.04 LTS with GNOME Shell and MATE.