QT uses incorrect theme when GNOME_DESKTOP_SESSION_ID is unset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Dimitri John Ledkov |
Bug Description
[ Description ]
When launching Qt applications from indicators under Unity, the theme isn't right.
[ Fix ]
It's because GNOME_DESKTOP_
[ Regression potential ]
We're setting the environment variable ~all the time in the session. Maybe something could be expecting it not to be set?
[ QA ]
This is a bit racy, so you might not see it all the time. Install vlc, restart your session (or the sound indicator), then click the indicator and launch vlc. You might see the wrong theme before and should always see the right theme after.
[ Original description ]
Bug discovered when launching VLC from the sound indicator applet: the QT UI theme is wrong. The theme is correct when launched from Unity launcher or terminal. Please see the attached screenshots.
I've tracked it down to a difference in environment in the VLC process: When launched from indicator-sound, the variable GNOME_DESKTOP_
To reproduce, either:
1) Launch VLC from indicator-sound (make sure it's not already running and has been started from somewhere else)
2) Or just start VLC like this from terminal:
$ GNOME_DESKTOP_
Looks like a bug in qt4, which seems to depend on GNOME_DESKTOP_
Try:
$ GNOME_DESKTOP_
Observe theme not picked up from "Desktop settings" in qtconfig.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qt4-qtconfig 4:4.8.5+
ProcVersionSign
Uname: Linux 3.13.0-23-generic x86_64
ApportVersion: 2.14.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 9 22:15:27 2014
InstallationDate: Installed on 2014-04-01 (8 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
SourcePackage: qt4-x11
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
no longer affects: | qt |
no longer affects: | vlc (Ubuntu) |
summary: |
- VLC incorrectly themed when launched from indicator-sound + QT incorrectly themed when GNOME_DESKTOP_SESSION_ID unset |
summary: |
- QT incorrectly themed when GNOME_DESKTOP_SESSION_ID unset + QT incorrectly themed when GNOME_DESKTOP_SESSION_ID is unset |
description: | updated |
description: | updated |
summary: |
- QT incorrectly themed when GNOME_DESKTOP_SESSION_ID is unset + QT uses incorrect theme when GNOME_DESKTOP_SESSION_ID is unset |
Changed in qt4-x11 (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Or bug is in indicator-sound for not providing a value for GNOME_DESKTOP_ SESSION_ ID in the environment of processes it spawns.