Qt application does not show tray icon if sni-qt is installed

Bug #1192149 reported by Alexey Fedoseev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sni-qt
Invalid
Undecided
Unassigned

Bug Description

Qt application uses QSystemTrayIcon to display tray icons:

 QIcon icon = QIcon(":/Icons/images/theicon.png");
 trayIcon = new QSystemTrayIcon(icon, this);
 trayIcon->show();

But the tray icon didn't appear the application startup. I can see this string in the application log :

 Could not create '/tmp/sni-qt_APPNAME_3788-zQMxMX/icons' dir in 'hicolor/16x16/apps'

For some reason the hicolor folder has been created with insufficient rights:

 ~$ ls -l /tmp/sni-qt_APPNAME_3788-zQMxMX/icons
 total 4
 drw-rw-rw- 2 dralex dralex 4096 Jun 18 11:20 hicolor

The bug has appeared first time after a regular system update (including sni-qt installation). Without sni-qt the application works fine (the application was added to the whilelist, etc.).

The bug is reproduced on Ubuntu with Unity 3D (12.04), both 32-bit and 64-bit systems, with any available sni-qt package (sni-qt_0.2.5-0ubuntu3, sni-qt_0.2.6-0ubuntu1). Qt version is 4.8.1-0ubuntu4.4.

The real problem is that I cannot reproduce this bug with standard systray example from Qt. Looks like for some reason my application could not create subdirectory tree in /tmp directory.

One more question. Is it possible to disable somehow sni-qt image caching in /tmp?

Revision history for this message
Alexey Fedoseev (a-fedoseev) wrote :

Sorry, looks like the problem was in my application - playing with umask in a second thread.
You can remove this bug.

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.