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,802
  • Use dpkg -L kolourpaint to see what files came with the package. – waltinator Dec 25 '20 at 20:12
  • OK. I ran this command, and then I did a diff between the output and the official list of files included with this package at https://packages.ubuntu.com/groovy/amd64/kolourpaint/filelist and they are exactly the same. – Enterprise Dec 25 '20 at 21:07
  • 2
    happening also in Ubuntu 22.04, I applied N0rbert's fix below, and it works – xCovelus Oct 28 '22 at 17:17

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
N0rbert
  • 103,523
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.

  • The above snap install functionned for Lubuntu 22.04.3 LTS (Jammy Jellyfish) but the new version of kolourpaint takes longer to open. – Alain Reve Sep 29 '23 at 10:57
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