17

Kolourpaint is missing icons in the tools pane on Ubuntu 20.10 when installed using sudo apt install kolourpaint.

Is there a solution that does not require using the snap version or changing the system icon theme?

enter image description here

Enterprise
  • 12,792

4 Answers4

20

You have to install the default Plasma theme meta-package called breeze with

sudo apt-get install breeze

and then restart KolourPaint application.

Minimally installing just the breeze-icon-theme also works.

sudo apt-get install breeze-icon-theme
Dhwani Katagade
  • 383
  • 5
  • 11
N0rbert
  • 103,263
1

Installing breeze did not fix my problem. I had to install kolourpaint using snap:

sudo snap install kolourpaint

I then had to uninstall kolourpaint using apt-get:

sudo apt-get remove kolourpaint

That brought the icons back.

1

Not sure for Ubuntu with GNOME Desktop, but similar problem can be fixed with Kolourpaint in Kubuntu 22.04 by installing every icon theme available (just to be on a safe side) and by running it with empty XDG_CURRENT_DESKTOP and QT_QPA_PLATFORMTHEME.

sudo apt install *icon-theme*
XDG_CURRENT_DESKTOP="" QT_QPA_PLATFORMTHEME="" kolourpaint

EDIT: made laucher script because

Exec=env XDG_CURRENT_DESKTOP="" QT_QPA_PLATFORMTHEME="" kolourpaint %u

in .desktop file didn't work when "open with" was used.

And most people run it mostly from .desktop file, that is from start menu or "open with" dialog and such, we can first make simple script to run with emptied env vars:

sudo tee /usr/local/bin/kolourpaintstarter.sh <<'EOF' >/dev/null
#!/bin/bash
export XDG_CURRENT_DESKTOP=
export QT_QPA_PLATFORMTHEME=
kolourpaint "$1"
EOF

sudo chmod +x /usr/local/bin/kolourpaintstarter.sh

/usr/share/applications/org.kde.kolourpaint.desktop as well, replacing line

Exec=kolourpaint %u

with

Exec=/usr/local/bin/kolourpaintstarter.sh %u

P.S.

That way we can avoid snap. I personally just don't like non-open app distribution platform, and there's no readily available AppImage build for Kolourpaint

topin89
  • 111
1
  1. install qt5ct:
sudo apt install qt5ct
  1. Open it:
qt5ct
  1. Navigate to Icon Theme, select any icon pack and click "Apply": Qt5 Settings

  2. Reopen kolourpaint, the icons should appear now: kolorpaint