Bug 413762 - GTK2 themes are not working at all and the previews aren't working either for only gtk2
Summary: GTK2 themes are not working at all and the previews aren't working either for...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-03 02:41 UTC by Josh Freeno
Modified: 2021-08-25 22:05 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Shot of gtk2 preview with theme applied. The gtk3 works fine (262.99 KB, image/jpeg)
2019-11-03 02:41 UTC, Josh Freeno
Details
attachment-10730-0.html (1.70 KB, text/html)
2020-01-26 22:18 UTC, Josh Freeno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Freeno 2019-11-03 02:41:45 UTC
Created attachment 123678 [details]
Shot of gtk2 preview with theme applied. The gtk3 works fine

SUMMARY


STEPS TO REPRODUCE
1. Move your gtk theme to ~/.local/share/themes
2. Open system settings to apply theme
3. 

OBSERVED RESULT
Once the theme is applied check the previews
The previews for gtk2 are not working as well as the actual gtk2 themes such as gimp and inkscape.
EXPECTED RESULT
Previews should work as well as the actual gtk 2 theme itself

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.2
Kernel Version: 5.3.8-arch1-1
OS Type: 64-bit


ADDITIONAL INFORMATION
These are themes I have made with the actual Breeze GTK script so there may be something wrong with that script. I have the theme engine gtk-engines installed
Comment 1 Mikhail Zolotukhin 2019-12-27 20:58:20 UTC
Does the gtk2 theme work on applications after applying, if it is moved to  ~/.local/share/themes?
Comment 2 Mikhail Zolotukhin 2019-12-28 15:02:02 UTC
I think, that gtk2 theme does not work, because gtk2 does not support XDG standard, so all the gtk2 themes must go in ~/.themes directory, not the ~/.local/share/themes.

Does the theme work if it is placed in ~/.themes directory?
Comment 3 Bug Janitor Service 2020-01-12 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Josh Freeno 2020-01-12 07:13:20 UTC
The gtk2 themes do work if placed in the root directory as @Mikhail Zolotukhin has stated. Inkscape and gimp still do not work if themes are placed in the home directory.
Comment 5 Christoph Feck 2020-01-13 11:06:19 UTC
New information was added with comment 4; changing status for inspection.
Comment 6 Josh Freeno 2020-01-16 04:57:05 UTC
In KDE we are instructed to put gtk themes into the ~/local/share/themes dir and not the the ~themes dir so I guess for now we need to place into in the root.
Comment 7 b2.temp 2020-01-25 06:02:20 UTC
Can someone provide a script to do the fix (i.e some a sh with `find` `mv`, etc) waiting for the Plasma fix ?

For now it's not clear how to fix it manually. For example here on F31 I have the BSM themes in ~/.themes and they do not work (the preview yes but the few GTK2 apps I use, notably Lazarus and what is produced with it, don't apply them).
Comment 8 Josh Freeno 2020-01-26 02:26:06 UTC
(In reply to b2.temp from comment #7)
> Can someone provide a script to do the fix (i.e some a sh with `find` `mv`,
> etc) waiting for the Plasma fix ?
> 
> For now it's not clear how to fix it manually. For example here on F31 I
> have the BSM themes in ~/.themes and they do not work (the preview yes but
> the few GTK2 apps I use, notably Lazarus and what is produced with it, don't
> apply them).

Open your terminal in the same folder as the themes you would like to move and do sudo mv or sudo cp-r with the name of theme theme after. mv for move cp for copy. The locations should be /usr/share/themes
Comment 9 b2.temp 2020-01-26 15:53:35 UTC
(In reply to Josh Freeno from comment #8)
> (In reply to b2.temp from comment #7)
> > Can someone provide a script to do the fix (i.e some a sh with `find` `mv`,
> > etc) waiting for the Plasma fix ?
> > 
> > For now it's not clear how to fix it manually. For example here on F31 I
> > have the BSM themes in ~/.themes and they do not work (the preview yes but
> > the few GTK2 apps I use, notably Lazarus and what is produced with it, don't
> > apply them).
> 
> Open your terminal in the same folder as the themes you would like to move
> and do sudo mv or sudo cp-r with the name of theme theme after. mv for move
> cp for copy. The locations should be /usr/share/themes

Unfortunately the themes are still not applied for me. 
I suspect that this is another problem.
Comment 10 Josh Freeno 2020-01-26 22:18:17 UTC
Created attachment 125452 [details]
attachment-10730-0.html

You still have to apply the theme.This just moves or copies the themes to
the root theme folder.

On Sun, Jan 26, 2020 at 9:53 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=413762
>
> --- Comment #9 from b2.temp@gmx.com ---
> (In reply to Josh Freeno from comment #8)
> > (In reply to b2.temp from comment #7)
> > > Can someone provide a script to do the fix (i.e some a sh with `find`
> `mv`,
> > > etc) waiting for the Plasma fix ?
> > >
> > > For now it's not clear how to fix it manually. For example here on F31
> I
> > > have the BSM themes in ~/.themes and they do not work (the preview yes
> but
> > > the few GTK2 apps I use, notably Lazarus and what is produced with it,
> don't
> > > apply them).
> >
> > Open your terminal in the same folder as the themes you would like to
> move
> > and do sudo mv or sudo cp-r with the name of theme theme after. mv for
> move
> > cp for copy. The locations should be /usr/share/themes
>
> Unfortunately the themes are still not applied for me.
> I suspect that this is another problem.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 11 b2.temp 2020-01-27 08:09:11 UTC
(In reply to Josh Freeno from comment #10)
> Created attachment 125452 [details]
> attachment-10730-0.html
> 
> You still have to apply the theme.This just moves or copies the themes to
> the root theme folder.

Yes I do that of course, i.e select in the configuration panel, but then GTK2 apps are still not themed. As I said I think this is another bug or regression, maybe even unrelated to Plasma.


> On Sun, Jan 26, 2020 at 9:53 AM <bugzilla_noreply@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=413762
> >
> > --- Comment #9 from b2.temp@gmx.com ---
> > (In reply to Josh Freeno from comment #8)
> > > (In reply to b2.temp from comment #7)
> > > > Can someone provide a script to do the fix (i.e some a sh with `find`
> > `mv`,
> > > > etc) waiting for the Plasma fix ?
> > > >
> > > > For now it's not clear how to fix it manually. For example here on F31
> > I
> > > > have the BSM themes in ~/.themes and they do not work (the preview yes
> > but
> > > > the few GTK2 apps I use, notably Lazarus and what is produced with it,
> > don't
> > > > apply them).
> > >
> > > Open your terminal in the same folder as the themes you would like to
> > move
> > > and do sudo mv or sudo cp-r with the name of theme theme after. mv for
> > move
> > > cp for copy. The locations should be /usr/share/themes
> >
> > Unfortunately the themes are still not applied for me.
> > I suspect that this is another problem.
> >
> > --
> > You are receiving this mail because:
> > You reported the bug.
Comment 12 b2.temp 2020-02-03 00:21:29 UTC
The problem for me was that the file "~/.gtkrc-2.0-kde4" was not updated after changing the theme in the setting panel. Maybe check if this was the problem for you too.
Comment 13 Mikhail Zolotukhin 2020-02-13 19:36:31 UTC
Is this still reproducible on Plasma 5.18?
Comment 14 Nate Graham 2020-06-16 05:30:23 UTC
Can you check again with Plasma 5.18 or 5.19? Thanks!
Comment 15 b2.temp 2020-06-16 14:12:23 UTC
   I'm sorry but unfortunately I'm stuck on 5.17 until the maintainer of
   the distrib decide to update. *Envoyé:* mardi 16 juin 2020 à 07:30
   *De:* "Nate Graham" <bugzilla_noreply@kde.org>
   *À:* b2.temp@gmx.com
   *Objet:* [systemsettings] [Bug 413762] GTK2 themes are not working at
   all and the previews aren't working either for only gtk2https://bugs.kde.org/show_bug.cgi?id=413762

   Nate Graham <nate@kde.org> changed:

   What |Removed |Added
   ----------------------------------------------------------------------------
   Status|REPORTED |NEEDSINFO
   CC| |nate@kde.org
   Resolution|--- |WAITINGFORINFO

   --- Comment #14 from Nate Graham <nate@kde.org> ---
   Can you check again with Plasma 5.18 or 5.19? Thanks!

   --
   You are receiving this mail because:
   You are on the CC list for the bug.
Comment 16 Bug Janitor Service 2020-07-01 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 Bug Janitor Service 2020-07-16 04:33:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 18 Xeno Idaltu 2021-08-25 22:02:50 UTC
I'm a Debian Stable user so I recently came this issue.


I use QT-Curve-GTK2 and this is what I do to fix this issue.

1) Install "gtk-chtheme" from Debian based repos.
2) GTK-ChTheme allows us to preview and choose GTK2 themes.
3) Make sure to remove the GTK2 Folder/Theme from the Parent Directory where your currently used GTK3 resides. We need to remove this folder so it doesn't mess with our GTK2 apps because technically there are two GTK2 apps being used at the same time.
Comment 19 Xeno Idaltu 2021-08-25 22:05:44 UTC
I meant "because technically there are two GTK2 Themes being used at the same time.