Unity launcher shows wrong icon (question mark) if the executable is executed via a symlink

Bug #789767 reported by Daniel van Vugt on 2011-05-29
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
BAMF
Undecided
Unassigned
Unity
Confirmed
Undecided
Unassigned
Unity Foundations
Undecided
Unassigned
unity-2d
Undecided
Unassigned
bamf (Ubuntu)
Undecided
Unassigned
unity (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: unity

Install package avidemux (GTK version). Now run 'avidemux' in a terminal. You get the wrong icon in the Unity launcher (a question mark). Close Avidemux and try running 'avidemux2_gtk' in a terminal. Now you get the correct Avidemux icon in the launcher.

The only difference between the avidemux and avidemux2_gtk commands is symlinks:

% ls -l /usr/bin/avidemux*
lrwxrwxrwx 1 root root 26 2011-04-28 20:58 /usr/bin/avidemux -> /etc/alternatives/avidemux
-rwxr-xr-x 1 root root 1903376 2011-01-18 00:03 /usr/bin/avidemux2_gtk
% ls -l /etc/alternatives/avidemux
lrwxrwxrwx 1 root root 22 2011-04-28 20:58 /etc/alternatives/avidemux -> /usr/bin/avidemux2_gtk

So they are both the same binary. It stands to reason that both commands should produce the same icon in the Unity launcher.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.12-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,vpswitch,place,imgpng,regex,unitymtgrabhandles,grid,session,snap,mousepoll,resize,move,animation,expo,ezoom,workarounds,resizeinfo,wall,staticswitcher,fade,scale,unityshell]
Date: Sun May 29 13:48:29 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Daniel van Vugt (vanvugt) wrote :
Bilal Akhtar (bilalakhtar) wrote :

That's because the avidemux2_gtk is mentioned in the desktop file, which BAMF matches correctly.

BAMF should match the correct executable with the desktop file in case the executable is executed via a symlink

affects: unity (Ubuntu) → bamf (Ubuntu)
affects: unity → unity-foundations
summary: - Unity launcher shows wrong icon (question mark) for Avidemux if started
- via 'avidemux' instead of 'avidemux2_gtk'
+ BAMF doesn't match correct desktop file if the executable is executed
+ via a symlink
Changed in bamf:
status: New → Confirmed
Changed in unity-foundations:
status: New → Confirmed
Changed in bamf (Ubuntu):
status: New → Confirmed
Daniel van Vugt (vanvugt) wrote :

Thanks Bilal. I updated the bug title to something normal people can understand and will recognise...

summary: - BAMF doesn't match correct desktop file if the executable is executed
- via a symlink
+ Unity launcher shows wrong icon (question mark) if the executable is
+ executed via a symlink
Didier Roche (didrocks) on 2011-07-20
Changed in unity:
status: New → Confirmed
Didier Roche (didrocks) on 2011-07-22
Changed in unity-2d:
status: New → Confirmed
Omer Akram (om26er) on 2012-07-22
Changed in unity-foundations:
status: Confirmed → Invalid
Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity-2d:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers