Bug 387091 - [X11] Set GTK theme also over XSettings
Summary: [X11] Set GTK theme also over XSettings
Status: RESOLVED DUPLICATE of bug 375272
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_gtk (show other bugs)
Version: 5.11.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Mikhail Zolotukhin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-19 01:06 UTC by Elias
Modified: 2022-07-23 11:52 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias 2017-11-19 01:06:51 UTC
My apps installed with flatpak don't use the correct GTK theme.
As stated here: https://github.com/flatpak/flatpak/issues/1147
the theme should also get set over XSettings.
Comment 1 Aleix Pol 2017-11-19 22:47:14 UTC
Yes, I have no idea how that works. If someone can provide a patch or at least send us a snippet, that would be very much appreciated.
Comment 2 Fabian Raab 2018-08-30 14:39:06 UTC
As a workaround, I got it working with the following steps:

 1. Install xsettingsd (https://github.com/derat/xsettingsd , but is also part of many standard repos)
 2. `echo 'Net/ThemeName "Arc-Dark"' >> ~/.xsettingsd` (Change Ark-Dark to whatever theme you have installed)
 3. Stard xsettingsd (just run the command `xsettingsd` as current user)
 4. It should immediately work for every flatpak application which is started aferwards
Comment 3 Nate Graham 2018-08-30 15:06:23 UTC
FWIW, this was fixed for Wayland with https://cgit.kde.org/kde-gtk-config.git/commit/?id=87040960da7e9e587b4cb61251807e164aa53483, so the issue now only persists for X11. Re-titiling the bug appropriately.
Comment 4 Peter Eszlari 2019-10-29 21:45:00 UTC
You can also make this work by running

$ GTK_THEME=Breeze flatpak run ...
Comment 5 Nate Graham 2019-11-04 19:30:03 UTC

*** This bug has been marked as a duplicate of bug 375272 ***