Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get my program to install correctly, and it mostly does, the launcher icon looks fine, and it opens fine, but the icon used in the alt-tab/app switcher doesn't show up.

The .desktop file points to the correct location for the applications image, hence the launcher icon working, but the alt-tab icon doesn't show up...

Here is the problem in image form:

enter image description here

Any ideas?


share|improve this question
What desktop environment are you using? The switcher on the photo looks decent and I want it, too! (Compiz has only s***.) – Robert Siemer Mar 13 '14 at 2:51
Hey, I believe I was using Unity 2d at the time. Hope this helps :) – ikt Mar 17 '14 at 12:17
Well... Unity 2d is gone. – Robert Siemer Mar 17 '14 at 12:29
yep, I was on 12.04 at the time, this may help though:… – ikt Mar 23 '14 at 17:16
No, it doesn’t help, as any switcher suggested there has huge icons for each application. Unity 2d ran with metacity, by the way. And I am on 12.04, but not for long, I guess. – Robert Siemer Mar 24 '14 at 2:35
up vote 1 down vote accepted

Fixed it!

Change the relative path to an absolute path in your pyqt4 designer code.

for example, change from:

icon.addPixmap(QtGui.QPixmap(_fromUtf8("../liumimages/path3194.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)


icon.addPixmap(QtGui.QPixmap(_fromUtf8("/home/ikt/code/yaum/liumimages/path3194.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.