Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks

share|improve this question

1 Answer

up vote 0 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)

to:

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

Done!

share|improve this answer

Your Answer

 
discard

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.