Get Android Remote Notifier to work with Unity on Ubuntu Natty (11.04) and Oneiric (11.10)

Ubuntu Natty onwards, the default desktop manager is Unity. Unity has disabled the default system tray, and applications which wish to show up on the Unity panel should support Ubuntu Application Indicators. Unfortunately Android Remote Notifier doesn’t support App Indicators yet and hence doesn’t show up in the Unity panel on being executed. Luckily for us, there’s a way to get around this issue.

You can whitelist the application to let it use Unity’s application area by changing a gconf key (systray-whitelist). First of all query what’s the current value of the systray-whitelist key by using the below command.

@~ $  gsettings get com.canonical.Unity.Panel systray-whitelist

In my case, the output I get is

['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'jupiter']

Now to this list, we need to add the Android Notifier App. The string we need to add to the above array is ‘SWT’ – yes that’s the name by which Unity recognizes Android Notifier. So in my case the value for the new setting would be:

['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'jupiter', 'SWT']

And the command to enable the new setting is:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'jupiter', 'SWT']"
Notice the extra double quotes around the string.

Now log out and login back and start the Android Notifier from the Unity Launcher.

Hope this helps

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.