Created attachment 133149 [details] photo strange and normal buttons SUMMARY STEPS TO REPRODUCE 1. Set theme in gtk breeze 2. Restart computer 3. Open gtk application. For instance, Firefox. OBSERVED RESULT I see other buttons close, restore, minimize. EXPECTED RESULT I must see usual buttons. In attachment you can see two picture. One photo is OBSERVED RESULT. Two photo is EXPECTED RESULT. But if I again set breeze theme in gtk and restart Firefox(or other gtk application) then i see normal button. After restart pc again buttons strange. It is very strange, because on my laptop is ok but on my pc have this bug. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.20.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 Kernel Version: 5.4.74-1-MANJARO OS Type: 64-bit Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: AMD OLAND ADDITIONAL INFORMATION
Works for me FWIW.
(In reply to Nate Graham from comment #1) > Works for me FWIW. What is FWIW?
"For What It's Worth", sorry for using internet jargon. :)
*** Bug 428893 has been marked as a duplicate of this bug. ***
*** Bug 429094 has been marked as a duplicate of this bug. ***
from what I understand, the problem only appears when changing the style of plasma applications. see here: https://www.reddit.com/r/kde/comments/jste1a/how_can_i_reinstall_kde_without_deleting_my/gcdp3wo/ this is what i wrote on reddit: I have understand what happens, but i can't fix it without a script. inside the ~/.config/gtk-3.0/window_decorations.css file there are written the paths of the buttons to use for the theme, but the path is not complete (it is normal), an example: https://i.imgur.com/NOUJXpl.png "background-image: url("assets/close-active.svg"); }" from what I understand, plasma does not provide the initial part of the path(in an environmental variable probably), and therefore the application directly takes the icons that are present in: ~/.config/gtk-3.0/assets/ I'm sure of this because if I delete the assets folder present in.config/gtk-3.0/, the buttons no longer appear while I have the fraken theme, but they appear if the theme works correctly (this is because it no longer uses the button icons present in .config/gtk....). i also found a way to fix it momentarily via a script(not a permanent solution)
(In reply to Skeleton221 from comment #6) > from what I understand, the problem only appears when changing the style of > plasma applications. > see here: > https://www.reddit.com/r/kde/comments/jste1a/ > how_can_i_reinstall_kde_without_deleting_my/gcdp3wo/ > > this is what i wrote on reddit: > > > I have understand what happens, but i can't fix it without a script. > > inside the ~/.config/gtk-3.0/window_decorations.css file there are written > the paths of the buttons to use for the theme, but the path is not complete > (it is normal), an example: https://i.imgur.com/NOUJXpl.png > > "background-image: url("assets/close-active.svg"); }" > > from what I understand, plasma does not provide the initial part of the > path(in an environmental variable probably), and therefore the application > directly takes the icons that are present in: ~/.config/gtk-3.0/assets/ > > I'm sure of this because if I delete the assets folder present > in.config/gtk-3.0/, the buttons no longer appear while I have the fraken > theme, but they appear if the theme works correctly (this is because it no > longer uses the button icons present in .config/gtk....). > > > > i also found a way to fix it momentarily via a script(not a permanent > solution) No. I don't change theme. I just reboot pc and appear this icons. In order to fix these icons, I have to change the theme, then everything is fine, but after a reboot again the same problem.
(In reply to Александр from comment #7) > No. I don't change theme. I just reboot pc and appear this icons. > > In order to fix these icons, I have to change the theme, then everything is > fine, but after a reboot again the same problem. if you want, you can use this script to "fix" the problem momentarily: https://www.dropbox.com/s/2xmk2ui76curawz/gtk.sh?dl=0 You have to put it in ~/.config/autostart-scripts/ As for the problem: how long ago did you install manjaro? I didn't have this problem before trying to change the style of the applications, but mine is an old installation.
(In reply to Skeleton221 from comment #8) > (In reply to Александр from comment #7) > > No. I don't change theme. I just reboot pc and appear this icons. > > > > In order to fix these icons, I have to change the theme, then everything is > > fine, but after a reboot again the same problem. > > if you want, you can use this script to "fix" the problem momentarily: > https://www.dropbox.com/s/2xmk2ui76curawz/gtk.sh?dl=0 > You have to put it in ~/.config/autostart-scripts/ > > > As for the problem: how long ago did you install manjaro? I didn't have this > problem before trying to change the style of the applications, but mine is > an old installation. Apologies for the late response. This was when the sysem was newly installed. It also seems to happen on EndeavourOS(Arch) as well. Due to other bugs with Plasman, I have reverted back to gnome for now. However, this was a repeatable bug that happened with a 100% success rate
(In reply to Skeleton221 from comment #8) > (In reply to Александр from comment #7) > > No. I don't change theme. I just reboot pc and appear this icons. > > > > In order to fix these icons, I have to change the theme, then everything is > > fine, but after a reboot again the same problem. > > if you want, you can use this script to "fix" the problem momentarily: > https://www.dropbox.com/s/2xmk2ui76curawz/gtk.sh?dl=0 > You have to put it in ~/.config/autostart-scripts/ > > > As for the problem: how long ago did you install manjaro? I didn't have this > problem before trying to change the style of the applications, but mine is > an old installation. I installed manjaro in December 2019 year.
(In reply to Skeleton221 from comment #8) > (In reply to Александр from comment #7) > > No. I don't change theme. I just reboot pc and appear this icons. > > > > In order to fix these icons, I have to change the theme, then everything is > > fine, but after a reboot again the same problem. > > if you want, you can use this script to "fix" the problem momentarily: > https://www.dropbox.com/s/2xmk2ui76curawz/gtk.sh?dl=0 > You have to put it in ~/.config/autostart-scripts/ > > > As for the problem: how long ago did you install manjaro? I didn't have this > problem before trying to change the style of the applications, but mine is > an old installation. Is it normal what your script forever repeat with 0.5 sec pause? 🤔🤔🤔🤔🤔
(In reply to Александр from comment #11) > Is it normal what your script forever repeat with 0.5 sec pause? 🤔🤔🤔🤔🤔 repeats the command until it has succeeded in setting the theme. this is the way to set the gtk theme from terminal: qdbus org.kde.GtkConfig /GtkConfig org.kde.GtkConfig.setGtkTheme $(grep "gtk-theme-name" ~/.config/gtk-3.0/settings.ini | cut -d'=' -f2) this takes the name of the theme it has to set: grep "gtk-theme-name" ~/.config/gtk-3.0/settings.ini | cut -d'=' -f2 this stops the repetition if the command worked: [ "$?" = "1" ] || break since at the start of the user session not everything has been loaded, but it takes a few seconds (depending on the pc), in this way it repeats the command until it works. another way is to add some delay before the command starts: sleep 20 ; qdbus org.kde.GtkConfig /GtkConfig org.kde.GtkConfig.setGtkTheme "Breeze-dark-gtk" but it is not an accurate way, as the time varies from pc to pc.
I had a problem like this some months ago,the script fixed it (I don't know what caused this bug). Now after changing some themes I have this bug again,but even after setting the themes back to "Breeze-Dark" for qt and "Breeze-Dark-Gtk" for Gtk it's still there and the script doesn't work. I'm on Manjaro.
(In reply to Skeleton221 from comment #12) > (In reply to Александр from comment #11) > > Is it normal what your script forever repeat with 0.5 sec pause? 🤔🤔🤔🤔🤔 > > repeats the command until it has succeeded in setting the theme. > > > this is the way to set the gtk theme from terminal: > qdbus org.kde.GtkConfig /GtkConfig org.kde.GtkConfig.setGtkTheme $(grep > "gtk-theme-name" ~/.config/gtk-3.0/settings.ini | cut -d'=' -f2) > > this takes the name of the theme it has to set: > grep "gtk-theme-name" ~/.config/gtk-3.0/settings.ini | cut -d'=' -f2 > > this stops the repetition if the command worked: > [ "$?" = "1" ] || break > > > since at the start of the user session not everything has been loaded, but > it takes a few seconds (depending on the pc), in this way it repeats the > command until it works. > > another way is to add some delay before the command starts: > sleep 20 ; qdbus org.kde.GtkConfig /GtkConfig org.kde.GtkConfig.setGtkTheme > "Breeze-dark-gtk" > but it is not an accurate way, as the time varies from pc to pc. Ok.Thanks! But this script didn't help me(
(In reply to Toadfield from comment #13) > I had a problem like this some months ago,the script fixed it (I don't know > what caused this bug). > Now after changing some themes I have this bug again,but even after setting > the themes back to "Breeze-Dark" for qt and "Breeze-Dark-Gtk" for Gtk it's > still there and the script doesn't work. > I'm on Manjaro. Yeah. I am not alone with this problem)
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/17
I also have this bug on my laptop,there my gtk programs look transparent and buggy until I re-select my theme. My pc is fully amd and my laptop has intel cpu and nvidia gpu. I have installed Manjaro on both.
(In reply to Toadfield from comment #17) > I also have this bug on my laptop,there my gtk programs look transparent and > buggy until I re-select my theme. > My pc is fully amd and my laptop has intel cpu and nvidia gpu. > I have installed Manjaro on both. When did the bug appear?
(In reply to Александр from comment #18) > (In reply to Toadfield from comment #17) > > I also have this bug on my laptop,there my gtk programs look transparent and > > buggy until I re-select my theme. > > My pc is fully amd and my laptop has intel cpu and nvidia gpu. > > I have installed Manjaro on both. > > When did the bug appear? On my Laptop since I installed my Distro there yesterday. On my pc,since some days.
*** Bug 429984 has been marked as a duplicate of this bug. ***
*** Bug 429982 has been marked as a duplicate of this bug. ***
I can confirm this bug on my system as well. I believe it came with Plasma 5.20. I'm waiting for the 5.20.5 update to see if it fixes it. So far the best way to deal with it is to delete ~/.config/gtk-3.0/ and not change themes, then the correct buttons of the gtk theme stick.
(In reply to Michał Dybczak from comment #22) > So far the best way to deal with it is to delete ~/.config/gtk-3.0/ and not > change themes, then the correct buttons of the gtk theme stick. Thanks,but the problem is that I like to change my theme often.
I have noticed that re selecting the theme doesn't change anything for firefox for example,so it looks buggy even after re selecting the gtk theme. This doesn't happen on programs like Pamac. Could that be cause Firefox is a gtk2 program?
(In reply to Toadfield from comment #24) > I have noticed that re selecting the theme doesn't change anything for > firefox for example,so it looks buggy even after re selecting the gtk theme. > This doesn't happen on programs like Pamac. > Could that be cause Firefox is a gtk2 program? Did you make restart program pamac after change theme?
(In reply to Александр from comment #25) > (In reply to Toadfield from comment #24) > > I have noticed that re selecting the theme doesn't change anything for > > firefox for example,so it looks buggy even after re selecting the gtk theme. > > This doesn't happen on programs like Pamac. > > Could that be cause Firefox is a gtk2 program? > > Did you make restart program pamac after change theme? yes