Qt application does not show tray icon if sni-qt is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sni-qt |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Qt application uses QSystemTrayIcon to display tray icons:
QIcon icon = QIcon("
trayIcon = new QSystemTrayIcon
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-
For some reason the hicolor folder has been created with insufficient rights:
~$ ls -l /tmp/sni-
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_
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?
Sorry, looks like the problem was in my application - playing with umask in a second thread.
You can remove this bug.