Indicator not shown in fallback mode when a subdir/file with the same name of icon exists in current work dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solaar |
Unknown
|
Unknown
|
|||
libappindicator |
New
|
Undecided
|
Unassigned | ||
libappindicator (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Take the attached python script and execute it in a non-unity desktop which does not support appindicators but can show gtk_status_icon (see at the end of the post under the "Tested on" paragraph).
The attached script will fallback correctly to the old gtk_status_icon and will show the "battery-good" indicator icon on the system tray.
Now exit from the script (with ^C).
In your current directory create a subdir named "battery-good".
Do not change directory and relaunch the script.
The fallback mechanism will be unable to find the icon, and now the indicator will not be shown.
The problem could be in app-indicator.c, near line 1641
if (g_file_
gtk_
}
This code will find the subdir "battery-good" you created, and it will try to load it as a icon. But if it fails, as it does, it will never load an icon for your indicator.
Tested on xubuntu 14.04.1 64bit without indicator panel element and with indicator application removed from autostart. Tested also on Fedora 20 64bit with XFCE.
Status changed to 'Confirmed' because the bug affects multiple users.