Bug 387091

Summary: [X11] Set GTK theme also over XSettings
Product: [Applications] systemsettings Reporter: Elias <supgesu>
Component: kcm_gtkAssignee: Mikhail Zolotukhin <mail>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, fabian, kilian, lehoangphuongbg, mail, nate, onestone, peter.eszlari, silopolis
Priority: NOR    
Version: 5.11.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***