← Back to team overview

ocaml-maint team mailing list archive

[Bug 1103446] [NEW] wrong StartupWMClass specification in unison-gtk.desktop

 

Public bug reported:

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"

** Affects: unison (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Patch to the .desktop file"
   https://bugs.launchpad.net/bugs/1103446/+attachment/3496406/+files/unison-gtk.desktop.patch

-- 
You received this bug notification because you are a member of Debian
OCaml Maintainers, which is subscribed to unison in Ubuntu.
https://bugs.launchpad.net/bugs/1103446

Title:
  wrong StartupWMClass specification in unison-gtk.desktop

Status in “unison” package in Ubuntu:
  New

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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unison/+bug/1103446/+subscriptions


Follow ups

References