Public bug reported:
Lubuntu uses Qt as the primary framework for most of the apps we ship.
However, some functionality we ship in Lubuntu doesn't have a Qt
application that provides that functionality, so we have some GTK3 apps
that we ship as well. Starting in Lubuntu 24.04, we are adding and
enabling the breeze-gtk-theme package, providing more uniform theming
between Qt and GTK apps on Lubuntu. However, this bug makes this
impossible.
As we do not ship xsettingsd, but instead use the XDG specification for
shipping configuration, we are attempting to place the default
configuration files for GTK2 and GTK3 theming in /etc/xdg/xdg-
Lubuntu/gtk-2.0/gtkrc and /etc/xdg/xdg-Lubuntu/gtk-3.0/settings.ini.
This solutions works for GTK2 apps, however GTK3 apps silently ignore
the vendored configuration file and are using a different theme.
As it turns out, this is because the /etc directory is given higher
priority than /etc/xdg/xdg-Lubuntu when searching for XDG configuration
files, and as it happens, libgtk-3-0 ships a /etc/gtk-3.0/settings.ini
file that sets Yaru as the default theme. GTK3 applications end up
selecting this configuration file rather than /etc/xdg/xdg-
Lubuntu/gtk-3.0/settings.ini.
/etc/gtk-3.0 is, I would argue, *not* a place where GTK3's settings.ini
file should go, as it makes it difficult for flavors who rely on XDG
configuration to override it without risking a file conflict.
(Technically I guess a flavor package *could* use dpkg-divert to simply
"get rid of" the /etc/gtk-3.0/settings.ini file, but that seems like the
wrong way to approach this.)
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libgtk-3-0 3.24.38-5ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Fri Dec 29 10:08:23 2023
InstallationDate: Installed on 2023-10-22 (69 days ago)
InstallationMedia: Lubuntu 23.10 "Mantic Minotaur" - Release amd64 (20231010)
SourcePackage: gtk+3.0
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: gtk+3.0 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/2047705
Title:
Packaging ships /etc/gtk-3.0/settings.ini, forcing the GTK3 theme to
Yaru and preventing flavors from overriding it with XDG configuration
Status in gtk+3.0 package in Ubuntu:
New
Bug description:
Lubuntu uses Qt as the primary framework for most of the apps we ship.
However, some functionality we ship in Lubuntu doesn't have a Qt
application that provides that functionality, so we have some GTK3
apps that we ship as well. Starting in Lubuntu 24.04, we are adding
and enabling the breeze-gtk-theme package, providing more uniform
theming between Qt and GTK apps on Lubuntu. However, this bug makes
this impossible.
As we do not ship xsettingsd, but instead use the XDG specification
for shipping configuration, we are attempting to place the default
configuration files for GTK2 and GTK3 theming in /etc/xdg/xdg-
Lubuntu/gtk-2.0/gtkrc and /etc/xdg/xdg-Lubuntu/gtk-3.0/settings.ini.
This solutions works for GTK2 apps, however GTK3 apps silently ignore
the vendored configuration file and are using a different theme.
As it turns out, this is because the /etc directory is given higher
priority than /etc/xdg/xdg-Lubuntu when searching for XDG
configuration files, and as it happens, libgtk-3-0 ships a
/etc/gtk-3.0/settings.ini file that sets Yaru as the default theme.
GTK3 applications end up selecting this configuration file rather than
/etc/xdg/xdg-Lubuntu/gtk-3.0/settings.ini.
/etc/gtk-3.0 is, I would argue, *not* a place where GTK3's
settings.ini file should go, as it makes it difficult for flavors who
rely on XDG configuration to override it without risking a file
conflict. (Technically I guess a flavor package *could* use dpkg-
divert to simply "get rid of" the /etc/gtk-3.0/settings.ini file, but
that seems like the wrong way to approach this.)
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libgtk-3-0 3.24.38-5ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Fri Dec 29 10:08:23 2023
InstallationDate: Installed on 2023-10-22 (69 days ago)
InstallationMedia: Lubuntu 23.10 "Mantic Minotaur" - Release amd64 (20231010)
SourcePackage: gtk+3.0
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/2047705/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp