wrong StartupWMClass specification in unison-gtk.desktop

Bug #1103446 reported by Christophe Drevet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unison (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In the package unison-gtk version 2.40.65-1ubuntu1, the .desktop file contains :
StartupWMClass=Unison-gtk

The software creates a window of class :
WM_CLASS(STRING) = "unison-2.40.65-gtk", "Unison-2.40.65-gtk"

Therefore, in the unity launcher, a bad quality icon appears and is not usable to actually launch the software.

I solved it for myself with a new desktop file in ~/.local/share/applications/unison-gtk.desktop containing:
[Desktop Entry]
Name=Unison
Comment=GTK interface for the unison file synchronization tool 2.40.65
GenericName=File synchronization tool
Exec=unison-2.40.65-gtk
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/usr/share/pixmaps/unison-gtk.svg
Categories=Utility;FileTools;GTK;
StartupWMClass=Unison-2.40.65-gtk
StartupNotify=true

I'm not sure it is the way to go. Maybe the software itself should create a window of class :
WM_CLASS(STRING) = "unison-2.40.65-gtk", "Unison-2.40.65-gtk", "Unison-gtk"

Tags: patch
Revision history for this message
Christophe Drevet (christophe-drevet) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to the .desktop file" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

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

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

Changed in unison (Ubuntu):
status: New → Confirmed
Revision history for this message
Felix Möller (felix-derklecks) wrote :

The patch indeed fixes the problem for me! Thanks!

How to proceed?

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.