PapirusDevelopmentTeam / papirus-icon-theme

Pixel perfect icon theme for Linux
https://git.io/papirus-icon-theme
GNU General Public License v3.0
6.59k stars 416 forks source link

How to apply "hardcode-tray" script in KDE? #220

Closed alex-oleshkevich closed 7 years ago

alex-oleshkevich commented 7 years ago

I ran

hardcode-tray -t Papirus -a
hardcode-tray -t Papirus-Dark -a

removed ~/.cache and /var/tmp/kde-$user/icon.cache file but tray icons are still colored: image

Icons are applied via systemsettings and installed in home directory.

image

varlesh commented 7 years ago

skypeforlinux already fixed on hardcode-tray, please update version from git and restart skype:

hardcode-tray -ug
hardcode-tray -s 22 -fs

Also use -f option for locate path icons on telegram, for example:

hardcode-tray -s 22 -fs -o telegram -p ~/Downloads/Telegram`
varlesh commented 7 years ago

oops, -p option not needed for telegram, because by default telegram create folder with icons here:

~/.local/share/TelegramDesktop/tdata/ticons/

See sources: https://github.com/bil-elmoussaoui/Hardcode-Tray/blob/master/database/telegram.json

You need update hardcode-tray from git, run script again and restart apps. See hardcode-tray --help

alex-oleshkevich commented 7 years ago

no luck:

image

image

Again, could it be a reason that I have installed icons in /home? Droppping caches does not help:

rm -rf ~/.cache 
rm -rf /var/tmp/kdecache-alex/icon.cache
kquitapp plasmashell ; plasmashell
varlesh commented 7 years ago

how you install hardcode-tray and patched sni-qt?

alex-oleshkevich commented 7 years ago

via package manager:

pacman -Q | egrep 'sni-qt|hardco'
hardcode-tray 3.5.2.1-1
lib32-sni-qt 0.2.6-6
sni-qt 0.2.6-4
varlesh commented 7 years ago

You have error with GTK parsing, i'm have earlier this bug too: https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/235 It's bug kdesudo or sudo... I think you run some gtk apps with sudo/kdesudo. For example kdesudo systemsettings5 or sudo gsettings

varlesh commented 7 years ago

also package sni-qt 0.2.6-4 - it's not patched sni-qt!

varlesh commented 7 years ago

https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/242

alex-oleshkevich commented 7 years ago

No, I run of them as regular user (id=1000)

On Dec 14, 2016 13:54, "Alexey Varfolomeev" notifications@github.com wrote:

You have error with GTK parsing, i'm have earlier this bug too: bil-elmoussaoui/Hardcode-Tray#235 https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/235 It's bug kdesudo or sudo... I think you run some gtk apps with sudo/kdesudo. For example kdesudo systemsettings5 or sudo gsettings

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/220#issuecomment-267004661, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmzyNlu0mPwV1HugHITD_rihqROrWK-ks5rH8rrgaJpZM4LMuGc .

varlesh commented 7 years ago

But you can temporary try old patched sni-qt version: https://aur.archlinux.org/packages/sni-qt-eplus-bzr/

varlesh commented 7 years ago

No, I run of them as regular user (id=1000)

I don't know why show error with GTK parsing, but this not Papirus bug... i think it's bug for kde only, because on GTK DE's not reproduced. @bil-elmoussaoui why this happened on kde and why needed GTK for hardcode-tray?

alex-oleshkevich commented 7 years ago

@varlesh I don't think that this is a root cause. It's just a deprecation notices.

alex-oleshkevich commented 7 years ago

@varlesh, as per spi-qt-eplus description: Qt4 plugin which turns all QSystemTrayIcon into StatusNotifierItems. Elementary+ version, from bzr

I cannot use it with KDE because it patches Qt apps to work with GTK DEs. KDE exactly requires QSystemTrayIcon

varlesh commented 7 years ago

I cannot use it with KDE because it patches Qt apps to work with GTK DEs.

No, it's needed for right work for Qt-apps! See readme https://github.com/bil-elmoussaoui/Hardcode-Tray#manual-install

varlesh commented 7 years ago

On AUR hardcode-tray depends: gtk3 (gtk3-aqd, gtk3-donnatella, gtk3-light, gtk3-nobroadway-nowayland-nocolord, gtk3-optional-csd, gtk3-typeahead, gtk3-ubuntu, gtk3-ubuntu-multilib) librsvg (librsvg-git) python python-cairosvg python-gobject (python-gobject-patched) inkscape (inkscape-092-bzr, inkscape-bzr) (optional) – to convert svg to png with inkscape lib32-sni-qt-eplus-bzr (optional) – 32-bit patched qt4 sni plugin to enable icon modification sni-qt-eplus-bzr (optional) – patched qt4 sni plugin to enable icon modification

alex-oleshkevich commented 7 years ago

Having sni-qt-eplus-bzr installed solved that issue. Thank you!

varlesh commented 7 years ago

But this temporary solution because now developed another sni-qt version for hardcode-tray, this now available for ubuntu PPA only, but not for PKGBUILDS: https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/243 https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/242 https://github.com/bil-elmoussaoui/Hardcode-Tray/issues/240

bilelmoussaoui commented 7 years ago

@varlesh You need Gtk in order to run the script as we use Gtk to detect the current theme, and get the icon location(path) with the correct size. It's better than building our own system which will be a one more thing to handle...