gdk_set_program_class breaks --class

Bug #1443273 reported by Lars Karlitski on 2015-04-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
gtk+3.0 (Ubuntu)

Bug Description

When a program itself calls gdk_set_program_class(), passing --class on the command line is a no-op.

Gnome-terminal does this to change it's WM_CLASS from gnome-terminal-server to gnome-terminal. Many people use --class in a custom desktop file to use profiles as applications. While this is not needed in newer versions of gnome-terminal (it has --app-id now), it makes sense to support this for backwards compatibility.

Related branches

Changed in gtk:
importance: Unknown → Medium
status: Unknown → Confirmed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+3.0 - 3.14.12-0ubuntu2

gtk+3.0 (3.14.12-0ubuntu2) vivid; urgency=medium

  * debian/patches/allow-overriding-WM_CLASS-from-the-command-line.patch:
    support --class even when the program calls gdk_set_program_class().
    Needed for gnome-terminal profile-as-app backwards compat (LP: #1443273)
 -- Lars Uebernickel <email address hidden> Mon, 13 Apr 2015 08:31:13 +0200

Changed in gtk+3.0 (Ubuntu):
status: New → Fix Released
Changed in gtk:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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