Registered Member
|
Hi board!
A few days ago, something that was working previously randomly broke, and I don't know why: GTK applications no longer accept my ~/.gtkrc-2.0 file, which I edited to alter the tooltips' fore- and background colors. After some googling, I found that my environment variable GTK2_RC_FILES was unset. I tried to fix this by issueing
However, when I run either application from Krunner or the Application menu, the changes are not applied and the tooltips keep their initial state, which is white text on white background. Aside from ~/.config/plasma-workspace/env/gtk-paths.sh, I also tried placing the export in:
None of these options worked. I would be happy for any further input on how to make the desktop and Krunner recognize my environment variables. Thanks! |
Administrator
|
Are you sure they're not somehow unset or overridden?
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
|
check /usr/bin/startkde, does it somewhere say
in case, make that
See https://bugs.kde.org/show_bug.cgi?id=352491 |
Registered Member
|
The second, corrected version was already present in my file on line 209.
I'm afraid I am not. How could I check that? Also, I realised the following information may be useful: I am running Arch Linux, and I have these Plasma packages installed:
|
|
[code]
tr '\0' '\n' < /proc/`pidof krunner`/environ | grep GTK tr '\0' '\n' < /proc/`pidof plasmashell`/environ | grep GTK tr '\0' '\n' < /proc/`pidof bad_gtk_process`/environ | grep GTK [code] |
Registered Member
|
Thank you! That pointed me to the right direction. Turns out, the problem was not that the config file could not be found, but that it was overwritten by another one. For the plasma applications: GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/vik/.gtkrc-2.0:/home/vik/.config/gtkrc-2.0 In /home/vik/.confif/gtkrc-2.0, I commented out the lines
Tooltips are now displayed as expected, but this solution feels a little hackish. Is there a more proper way to deal with this? |
|
Quoting that file:
|
Registered Member
|
Duh ... thanks. For reference's sake, in Plasma 5 it's found under System Settings -> Colors -> Options Tab -> "Apply colors to non-Qt applications".
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]