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?
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?
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
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.
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 %uin
.desktopfile 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