6

Some icons are missing from a KDE application (Okular) in Ubuntu.

How could this be fixed?

Opening okular from terminal shows:
android@android:~$ okular
Invalid Context= "Apps" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/256x256@2x/apps/"
Invalid Context= "Mimetypes" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/256x256@2x/mimetypes/"
Invalid Context= "Mimetypes" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/scalable/mimetypes/"
Invalid Context= "Apps" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/256x256@2x/apps/"
Invalid Context= "Mimetypes" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/256x256@2x/mimetypes/"
Invalid Context= "Mimetypes" line for icon theme:  "/snap/communitheme/current/share/icons/Suru/scalable/mimetypes/"

enter image description here

nazar2sfive
  • 1,187
  • 11
  • 43
  • 81
  • 2
    It's probably because you don't have whatever icon theme that that program uses installed on your system. Try opening okular from the terminal and post the initial output you receive upon opening the program. I'd like to see if there are any errors. – Emandudeguy Jul 26 '18 at 06:56
  • i posted the errors above @Emandudeguy – nazar2sfive Jul 29 '18 at 09:14
  • I have the same problem; must be some icon theme not installed. I tried installing `plasma-theme-oxygen`, but then I can't find how to change the theme for kde apps... – Rmano Sep 10 '18 at 08:03
  • You should try `sudo apt-get install qt5-style-plugins` – Puka Dec 18 '18 at 19:16

1 Answers1

2

First install qt5ct:

sudo apt install qt5ct

Then run it and choose your preferred icon/theme:

enter image description here

Finally set QT_QPA_PLATFORMTHEME to qt5ct in your .profile:

echo 'export QT_QPA_PLATFORMTHEME=qt5ct' >> $HOME/.profile

Re-login and it should fix the issue.

Ravexina
  • 54,268
  • 25
  • 157
  • 179