systray icons do not show up in indiactor bar

Bug #912608 reported by koppi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sni-qt
Invalid
Undecided
Unassigned

Bug Description

When running a qt4 based software, the systray icon does not show up any more in unity and on the console, it prints the following error messages:

Could not save icon as '/tmp/sni-qt_server_22456-MTXUll/icons/hicolor/16x16/apps/server_22456_1fd07571a5278bdba6564f8b47480a18.png'
Could not save icon as '/tmp/sni-qt_server_22456-MTXUll/icons/hicolor/22x22/apps/server_22456_1fd07571a5278bdba6564f8b47480a18.png'
Could not save icon as '/tmp/sni-qt_server_22456-MTXUll/icons/hicolor/32x32/apps/server_22456_1fd07571a5278bdba6564f8b47480a18.png'
Could not save icon as '/tmp/sni-qt_server_22456-MTXUll/icons/hicolor/48x48/apps/server_22456_1fd07571a5278bdba6564f8b47480a18.png'

Revision history for this message
Roberto Alsina (ralsina) wrote :

Just something that happened to me recently, maybe it helps:

I had an app that had just a 26x26 icon for the tray, and sni-qt would not display it, with that error. Manually scaled the icon to 48x48 and voilá, it started working.

Revision history for this message
Aurélien Gâteau (agateau) wrote :

[Sorry for the late answer]

Based on the log, I would suggest checking for file permission issues: is the "/tmp/sni-qt_server_22456-MTXUll" dir correctly created? Does it happen with all Qt4 applications which have a systray?

Revision history for this message
koppi (jakob-flierl) wrote : Re: [Bug 912608] Re: systray icons do not show up in indiactor bar

It only happens with one of my test qt4 apps, where the systray icon
worked fine before the invention of the unity system.

Revision history for this message
Aurélien Gâteau (agateau) wrote :

Is it possible for you to post a code example? This way I can either fix it in sni-qt or in the worse case, suggests way to get your code to work with it.

Revision history for this message
koppi (jakob-flierl) wrote :

Aurélien, while writing the code sample in question, it turned out,
that I forgot to include the icon.png file in my qrc resources file.
After adding the icon file to the qt4 resources file, the icon showed
up and everything worked as expected.

Kind regards and thanks for your patience.

Revision history for this message
Aurélien Gâteau (agateau) wrote :

OK, closing as invalid then.

Changed in sni-qt:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.