2012-06-01 12:18:02 |
Peter Würtz |
description |
Hi,
Unity ignores the icon of applications that were not launched using .desktop files. Instead, every application just gets a gray icon with a question mark.
This minimal python program opens a window and defines an icon for the application. In the gnome or kde window managers and task lists the application appears with the correct icon.
from PyQt4 import QtGui
fname = "/usr/share/icons/gnome/32x32/apps/accessories-calculator.png"
app = QtGui.QApplication([])
app.setWindowIcon(QtGui.QIcon(fname))
dialog = QtGui.QDialog()
dialog.setWindowTitle("Application with Icon")
dialog.show()
app.exec_()
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic-pae 3.2.16
Uname: Linux 3.2.0-24-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,gnomecompat,move,place,compiztoolbox,imgpng,vpswitch,mousepoll,regex,grid,session,unitymtgrabhandles,snap,resize,zoom,animation,wall,workarounds,expo,fade,scale,unityshell]
Date: Fri Jun 1 11:24:33 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110909)
SourcePackage: unity
UpgradeStatus: Upgraded to precise on 2012-05-18 (14 days ago) |
Hi,
Unity ignores the application icons of programs that were not launched using .desktop files. Instead, every application just gets a gray icon with a question mark.
This minimal python program opens a window and defines an icon for the application. In the gnome or kde window managers and task lists the application appears with the correct icon.
from PyQt4 import QtGui
fname = "/usr/share/icons/gnome/32x32/apps/accessories-calculator.png"
app = QtGui.QApplication([])
app.setWindowIcon(QtGui.QIcon(fname))
dialog = QtGui.QDialog()
dialog.setWindowTitle("Application with Icon")
dialog.show()
app.exec_()
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic-pae 3.2.16
Uname: Linux 3.2.0-24-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,gnomecompat,move,place,compiztoolbox,imgpng,vpswitch,mousepoll,regex,grid,session,unitymtgrabhandles,snap,resize,zoom,animation,wall,workarounds,expo,fade,scale,unityshell]
Date: Fri Jun 1 11:24:33 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110909)
SourcePackage: unity
UpgradeStatus: Upgraded to precise on 2012-05-18 (14 days ago) |
|