Comment 3 for bug 743827

Revision history for this message
Brandon Williams (opensource-subakutty) wrote : Re: No tray icon is displayed

The traceback that you're seeing is indeed associated with not having access to the "ip" utility from within "/bin". On Ubuntu, this utility is installed as "/bin/ip", but there is also a symlink under "/sbin". If your distro installs this utility under "/sbin" and does not also provide access to it from "/bin", then you'll see the traceback in question. If you have "/sbin/ip", then edit Controller.py and change all uses of "/bin/ip" to "/sbin/ip" to resolve the traceback.

Fixing the traceback won't fix the status tray icon, though, since the problem with the status tray icon is probably due to a missing icon in your gtk icon theme. The stock network icon is named "gtk-network.*".

Please try this:

1. execute python from the command line

2. at the python ">>> " prompt, execute the python command "import gtk" (without the quotes)

3. at the python ">>> " prompt, execute "icon = gtk.status_icon_new_from_stock(gtk.STOCK_NETWORK)"

After #3, do you see an icon in the status bar? Your icon theme should have an icon available for all stock icons. If it does not, then it will not be able to display an icon in the status tray. If I rename the icon files so that I don't have files with the expected names, then the command in #3 results in "GtkWarning: Error loading theme icon 'gtk-network' for stock: Error opening file: No such file or directory". If this is what you see, then the missing status tray icon is a bug in your icon theme and should be fixed there.