gnome-terminal ignores the command line options --name and --class

Bug #1453991 reported by Diego Luna
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu version:

Description: Ubuntu 15.04
Release: 15.04

Package version:

gnome-terminal:
  Installed: 3.14.2-0ubuntu3
  Candidate: 3.14.2-0ubuntu3
  Version table:
 *** 3.14.2-0ubuntu3 0
        500 http://mirrors.coopvgg.com.ar/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Description:

gnome-terminal ignores the command line options --name and --class.
These options are listed with gnome-terminal --help as general gtk+
options. They should set the WM_CLASS property of the terminal window,
so window managers can manage properties of individual windows separately.

The WM_CLASS property can be displayed with the xprop command.

Example:

# gnome-terminal &
# xprop WM_CLASS
(point the cursor on the terminal window)
WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"

# gnome-terminal --disable-factory --name foo --class bar &
# xprop WM_CLASS
WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"

Here is how it should be:

# gnome-terminal &
# xprop WM_CLASS
WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"

#gnome-terminal --disable-factory --class foo --name bar
# xprop WM_CLASS
WM_CLASS(STRING) = "bar", "foo"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-terminal (Ubuntu):
status: New → Confirmed
Revision history for this message
Simon Arlott (sa.me.uk) wrote :

I have a patch for this that restores the original WM_CLASS that would have been set with 14.10 by passing it to gnome-terminal-server.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-Pass-class-value-to-gnome-terminal-server-so-that-wi.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Diego Luna (diegorluna) wrote :

The patch provided by Simon Arlott seems to correct the problem, gnome-terminal behaves like expected now.

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.