I have Ubuntu22.04 installed. I have enabled Google Online account. Using Nautilus, I am able to open all types of files (Libre office etc.) directly by clicking them on the Google drive folder. However, I can not open pdf files using Document Viewer by double clicking them. The default application for .pdf files is document viewer. Instead, if I install okular (KDE PDF application) & make it default, it is able to open files (obviously, I don't want to do it. The screen shot of what happens on trying to open the file in Document viewer is as attached.
Asked
Active
Viewed 1,532 times
1 Answers
0
Unfortunately, I cannot see your screenshot of the actual issue. If you're getting any errors such as "Unable to open document "[file:// etc.] ... Error opening file ... Permission denied, then it may be related to permissions.
I solved this by re-installing the Document Viewer (Evince) but instead of using the Ubuntu .deb distribution, installing as a Flatpak (from Flathub). The sandbox distribution design of Flatpak seems not to suffer from this issue with AppArmor permissions.
- You need to uninstall the current package installation.
sudo apt-get remove evince
- If you already haven't done so, you need to install & activate Flatpak.
sudo apt install flatpak
- Activate the Flathub repository.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- Finally, install Document Viewer again (as a Flatpak distribution package).
flatpak install flathub org.gnome.Evince
Stanislav Modrák
- 101