ubiquity needs to preserve GTK_THEME when launched from live session

Bug #2037676 reported by Erich Eickmeyer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
High
Erich Eickmeyer
ubuntustudio-default-settings (Ubuntu)
Fix Released
High
Erich Eickmeyer

Bug Description

Currently, in Ubuntu Studio, when launched from the live session, Ubiquity is using the Adwaita GTK theme, which is inconsistent with the experience. The only way I can think of is to modify the ubiquity.desktop file's Exec= line to the following:

Exec=sudo --preserve-env=DBUS_SESSION_BUS_ADDRESS,XDG_DATA_DIRS,XDG_RUNTIME_DIR,GTK_THEME sh -c 'ubiquity gtk_ui'

Note the addition of GTK_THEME. This way the GTK theme is specified and gets preserved in the sudo environment, so long as it is set.

The other part of this fix is using ubuntustudio-live-settings to set the GTK_THEME=Materia-dark variable. As far as I know, this will be the only flavor that needs it.

In my testing, no other flavor of Ubuntu required this variable to be set as the correct GTK theme seemed to propogate correctly, probably due to the desktop environments already being GTK-based.

Tags: mantic

Related branches

tags: added: mantic
description: updated
description: updated
summary: - ubiquity needs to use Materia-dark theme when launched from live session
+ ubiquity needs to preserve GTK_THEME when launched from live session
description: updated
Changed in ubiquity (Ubuntu):
status: New → In Progress
assignee: nobody → Erich Eickmeyer (eeickmeyer)
milestone: none → ubuntu-23.10
importance: Undecided → High
Changed in ubuntustudio-default-settings (Ubuntu):
importance: Undecided → High
Changed in ubuntustudio-default-settings (Ubuntu):
status: In Progress → Fix Committed
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-default-settings - 23.10.15

---------------
ubuntustudio-default-settings (23.10.15) mantic; urgency=medium

  * Set GTK_THEME environment variable for live session (LP: #2037676)

 -- Erich Eickmeyer <email address hidden> Thu, 28 Sep 2023 12:01:48 -0700

Changed in ubuntustudio-default-settings (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 23.10.6

---------------
ubiquity (23.10.6) mantic; urgency=medium

  [ Erich Eickmeyer ]
  * Preserve GTK_THEME environment variable in live session (LP: #2037676)

 -- Steve Langasek <email address hidden> Fri, 29 Sep 2023 08:50:10 -0700

Changed in ubiquity (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.