With Ubuntu 17.10, Okular (installed through the Ubuntu repositories, i. e. apt install okular
) seems to work a lot worse than in previous versions. This is both on Wayland and on the X session. Here is a screenshot:
For example: As you can see, only the item “Contents” in the left sidebar has an icon. The other ones (“Thumbnails”, “Reviews”, “Bookmarks”) should have icons as well (see e. g. this screenshot).
Moreover, when I open Okular from the Terminal, I get a bunch of output:
inotify_add_watch("/home/user/.config/ibus/bus/9f77c45ee0ec4b6a89aaaa7669ff56c1-unix-0") failed: "No space left on device" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/16/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/22/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/24/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/32/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/48/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/64/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/128/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/16/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/22/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/24/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/32/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/48/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/64/" Invalid Context= "stock" line for icon theme: "/usr/share/icons/ubuntu-mono-dark/stock/128/"
The messages about the icon theme might be related to the missing icons. The first line apparently means that the limit of inotify watches has been reached – why is that happening?
Lastly, the UI theme looks nothing like other applications in Ubuntu (I guess this is a problem with Qt applications in general?) – look at the scroll bars, for example. I suppose this has to do with the move back to GNOME? It used to be much better in Ubuntu versions before 17.10.
Is there any way to fix/work around these issues?
As another data point, there is the question “Okular instances do not group under single icon in desktop dock on Ubuntu 17.10”, but that already has a solution in the link.
Install qt5ct:
Run:
and set the icon-theme to breeze. (You may do other modifications as you wish)
Set the appropriate evironment variable:
and add this line:
Reboot.
If this doesn't work continue with the following: Then copy the okular .desktop file to your home folder:
Modify the copied .desktop file by changing the line:
to
Open the
~/.local/share/applications
folder in Files and run Okular. It will ask you to trust the application the first time.Done.
My current status:
Missing icons: I found a solution to this in a comment on Launchpad bug #1698656 (“navigation panel icons missing on standard install of 17.04”):
I used “Breeze” instead of “Oxygen” as a fallback theme, though (because I like it more).
Error messages on the terminal: Still unsolved, although the issue of running out of inotify watches seems to have disappeared?
Inconsistent UI theme (e. g. scroll bars): Still unsolved.
Using a fresh install of Ubuntu 17.10, I also tried installing using
sudo apt install okular
and received the same issue as you have reported.However, it does appear to work if it is installed as a snap.
Remove the currently installed okular:
Install as a snap:
Trying to run okular from the terminal then gives the following:
Connect okular to the kde frameworks snap:
Running okular then gives the following:
For me, installing the
frameworkintegration
package (mentioned in this post) fixed it.