Public bug reported: I have created a simple python program that uses the appinidicator function of unity (attached). When I run it as a regular user, it works perfectly. But when I use 'sudo ./testindicator.py' instead of '/testindicator.py' it doesn't show up. This only happens while running the latest version of unity in ubuntu 13.04.
This is what it looks like from command-line: daboross@DaboUbuntu:~$ ./testindicator/testindicator.py ^CTraceback (most recent call last): File "./testindicator/testindicator.py", line 20, in <module> gtk.main() KeyboardInterrupt daboross@DaboUbuntu:~$ sudo ./testindicator/testindicator.py ^CTraceback (most recent call last): File "./testindicator/testindicator.py", line 20, in <module> gtk.main() KeyboardInterrupt (testindicator.py:16215): libappindicator-WARNING **: Unable to send signal for NewStatus: The connection is closed daboross@DaboUbuntu:~$ I used ctrl-c to stop the program. From the time when I used the first command to when I used ctrl-c, an indicator icon did appear. It didn't when I used `sudo`. There is another program that I am using (pyAlienFX), that needs to run an appindicator as root. In 13.04, it seems that this does not work. This bug does not occur when I used `sudo` and am on Ubuntu 12.04. This is the output of unity --version: daboross@DaboUbuntu:~$ unity --version unity 7.0.0 ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: unity 7.0.0daily13.04.18~13.04-0ubuntu1 ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8 Uname: Linux 3.8.0-19-generic x86_64 ApportVersion: 2.9.2-0ubuntu8 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' Date: Thu Apr 25 11:19:15 2013 InstallationDate: Installed on 2013-04-20 (5 days ago) InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130419) MarkForUpload: True ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: unity UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: unity (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 appindicator apport-bug python raring ** Attachment added: "This is the python indicator I tested with." https://bugs.launchpad.net/bugs/1172837/+attachment/3653557/+files/testindicator.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1172837 Title: Python appindicator doesn't work in 13.04 when run as root To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1172837/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs