https://bugs.kde.org/show_bug.cgi?id=402174

Alexander M. <apmihalopou...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apmihalopou...@gmail.com

--- Comment #1 from Alexander M. <apmihalopou...@gmail.com> ---
I don't know if it's the same bug I came here to report, but it seems similar
enough.

I've been having kde-gtk-config crash on me since at least a couple of major
releases ago (i.e. 5.12 or so) whenever I click on "Gnome Application Style" in
the system settings. It also produces the following errors before it crashes:

couldn't include  "widgets/default"
couldn't include  "widgets/buttons"
couldn't include  "widgets/menu"
couldn't include  "widgets/entry"
couldn't include  "widgets/notebook"
couldn't include  "widgets/range"
couldn't include  "widgets/scrollbar"
couldn't include  "widgets/toolbar"
couldn't include  "widgets/progressbar"
couldn't include  "widgets/misc"
couldn't include  "widgets/styles"

(These errors are specific to Breeze, other themes produce different but
similar errors, for reasons that will hopefully become apparent.)


At first I found a hacky solution was to delete the file ~/.gtkrc-2.0 that is
created/populated by kde-gtk-config, but this would of course reset my GTK
theme settings. But, since afterwards I could simply tweak my theme options,
save them and then never bother with kde-gtk-config again, it proved adequate.

Yesterday I looked into it a bit more, and I found that the culprit seems to be
that kde-gtk-config includes the following two lines in ~/.gtkrc-2.0:

include "/usr/share/themes/$SELECTED_THEME/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"

I looked it up on the internet and found this, back from 2010:

https://www.linuxquestions.org/questions/slackware-14/latest-current-updates-gtkrc-2-0-doesn%27t-appear-to-work-844356/

In short, at some point in time, the "gtk-theme-name" property seems to have
stopped working properly, and in order to set a GTK theme one had to also
manually include its configuration files. Now, it seems that as of late this is
no longer the case, in fact having those includes produces a crash.

So I tested it and indeed, commenting out or deleting those two lines results
in kde-gtk-config no longer crashing and what's more, the GTK theme is applied
correctly - which seems to imply that "gtk-theme-name" works once again as it
should, making those problematic includes redundant.

So, to sum up, OP:

Does deleting the file ~/.gtkrc-2.0, or commenting out/deleting those two lines
in it, resolve your issue?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to