<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>417090</bug_id>
          
          <creation_ts>2020-02-03 09:15:29 +0000</creation_ts>
          <short_desc>gtkrc-2.0-kde4 not updated after applying the GTK style</short_desc>
          <delta_ts>2020-02-05 18:34:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_style</component>
          <version>5.17.5</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>415770</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=413762</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>b2.temp</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>mail</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1907281</commentid>
    <comment_count>0</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 09:15:29 +0000</bug_when>
    <thetext>SUMMARY

The custom theme selected for gtk2 apps is not applied.


STEPS TO REPRODUCE
1. select a theme in the kcm style panel
2. apply
3. start a gtk2 app

OBSERVED RESULT

style not changed

EXPECTED RESULT

other style

OTHER INFO

The problem happens because the setting file ~/gtkrc-2.0-kde4 is not updated so basically selecting a theme is a noop; although the preview from the kcm settings is correct.

VERSION INFO

Plasma 5.66.0-1.fc31</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907293</commentid>
    <comment_count>1</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 09:56:45 +0000</bug_when>
    <thetext>By the way it&apos;s a regression. Using the latest version of Plasma proposed by dnf before Fedora 28 got EOL it worked still.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907297</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-03 10:12:49 +0000</bug_when>
    <thetext>If you remove ~/gtkrc-2.0-kde4 file, will theme change work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907317</commentid>
    <comment_count>3</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 12:19:15 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #2)
&gt; If you remove ~/gtkrc-2.0-kde4 file, will theme change work?

no, clearly the problem is that the file is not updated when present or not created when absent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907319</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-03 12:29:01 +0000</bug_when>
    <thetext>What&apos;s your contents of GTK2_RC_FILES environment variable?

echo $GTK2_RC_FILES</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907321</commentid>
    <comment_count>5</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 12:38:41 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #4)
&gt; What&apos;s your contents of GTK2_RC_FILES environment variable?
&gt; 
&gt; echo $GTK2_RC_FILES

/home/mister-freeze/.gtkrc-2.0-kde4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907322</commentid>
    <comment_count>6</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-03 12:47:21 +0000</bug_when>
    <thetext>Did you set it by yourself or is set by your distribution?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907323</commentid>
    <comment_count>7</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 12:53:22 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #6)
&gt; Did you set it by yourself or is set by your distribution?

it was set automatically after a setup of the Fedora KDE &quot;spin&quot; (https://spins.fedoraproject.org/kde/)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907324</commentid>
    <comment_count>8</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 12:54:18 +0000</bug_when>
    <thetext>(In reply to b2.temp from comment #7)
&gt; (In reply to Mikhail Zolotukhin from comment #6)
&gt; &gt; Did you set it by yourself or is set by your distribution?
&gt; 
&gt; it was set automatically after a setup of the Fedora KDE &quot;spin&quot;
&gt; (https://spins.fedoraproject.org/kde/)

so by my distrivution</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907327</commentid>
    <comment_count>9</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-03 13:12:37 +0000</bug_when>
    <thetext>Does the output of 

killall kded5; kded5

contains something like

QIODevice::write (QFile, &quot;~/.gtkrc-2.0-kde4&quot;): device not open

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907334</commentid>
    <comment_count>10</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-03 13:51:12 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #9)
&gt; Does the output of 
&gt; 
&gt; killall kded5; kded5
&gt; 
&gt; contains something like
&gt; 
&gt; QIODevice::write (QFile, &quot;~/.gtkrc-2.0-kde4&quot;): device not open
&gt; 
&gt; ?

sorry don&apos;t hold on for an answer to this. I&apos;ll check in one day or two.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907486</commentid>
    <comment_count>11</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-04 14:27:28 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #9)
&gt; Does the output of 
&gt; 
&gt; killall kded5; kded5
&gt; 
&gt; contains something like
&gt; 
&gt; QIODevice::write (QFile, &quot;~/.gtkrc-2.0-kde4&quot;): device not open
&gt; 
&gt; ?

No it does not</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907488</commentid>
    <comment_count>12</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-04 14:29:45 +0000</bug_when>
    <thetext>Then it&apos;s strange. Recent version of kde-gtk-config should respect GTK2_RC_FILES environment variable and write config into the path, specified by it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907491</commentid>
    <comment_count>13</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-04 14:42:03 +0000</bug_when>
    <thetext>Could you please also provide the full output of that command?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907503</commentid>
    <comment_count>14</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-04 15:26:30 +0000</bug_when>
    <thetext>(In reply to Mikhail Zolotukhin from comment #13)
&gt; Could you please also provide the full output of that command?

---
kded5: aucun processus trouvé
kf5.kded: found kded module &quot;colord&quot; by prepending &apos;kded_&apos; to the library path, please fix your metadata.
colord: &quot;/home/mister-freeze/.local/share/icc/.&quot; is not an ICC profile
colord: &quot;/home/mister-freeze/.local/share/icc/..&quot; is not an ICC profile
org.kde.bluez: PendingCall Error: &quot;The name is not activatable&quot;
colord: EDID ICC Profile already exists &quot;/home/mister-freeze/.local/share/icc/edid-e97c68aecd687e7ad22e31ac0d3f7eee.icc&quot;
org.kde.bluez: PendingCall Error: &quot;Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.&quot;
---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907528</commentid>
    <comment_count>15</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-04 17:49:39 +0000</bug_when>
    <thetext>Could you please say, if the Plasma GTKd background service is loaded, by looking at Startup &amp; Shutdown &gt; Background Services ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907542</commentid>
    <comment_count>16</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-04 19:23:02 +0000</bug_when>
    <thetext>Unfortunately this panel crashes ksystemsettings5:

---
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags&lt;QSurfaceFormat::FormatOption&gt;(ResetNotification), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
KCrash: Application &apos;systemsettings5&apos; crashing...
KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Stoppé                 systemsettings5
---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907548</commentid>
    <comment_count>17</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-04 19:51:30 +0000</bug_when>
    <thetext>BTW I had launched systemsettings5 in the console with the hope that there would be a useful message when clicking the &quot;Apply&quot; after selecting the gtk2 style. Nothing happens at all. Same thing for &quot;kcmshell5 kde-gtk-config&quot; or when using gdb or strace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907555</commentid>
    <comment_count>18</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-04 20:11:17 +0000</bug_when>
    <thetext>kcmshell5 kde-gtk-config launches the GTK KCM, that was deleted in 5.18. Are you sure you&apos;re selecting a theme in subpage of applications style KCM? (There should be a button near the &quot;Configure Icons and Toolbars...&quot; named &quot;Configure GNOME/GTK Application Style...&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907571</commentid>
    <comment_count>19</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-04 21:26:47 +0000</bug_when>
    <thetext>yes this is the same thing. As said I just used this as a way to track possible error written in stderr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907732</commentid>
    <comment_count>20</comment_count>
    <who name="">b2.temp</who>
    <bug_when>2020-02-05 18:18:12 +0000</bug_when>
    <thetext>Sorry the plasma version reported earlier is wrong. It&apos;s 5.17.5, explaining why the gtk KCM is still there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907734</commentid>
    <comment_count>21</comment_count>
    <who name="Mikhail Zolotukhin">mail</who>
    <bug_when>2020-02-05 18:34:25 +0000</bug_when>
    <thetext>So, it&apos;s the same type of bug as 415770. In the next Plasma version there will be a sub page in the application style KCM, and this bug will be fixed. Meanwhile you can create a symbolic link to ~/.gtkrc-2.0

*** This bug has been marked as a duplicate of bug 415770 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>