Package: cgmail Version: 0.6.2-1 Severity: important Tags: patch cgmail refuses to do anything if the environment variable USERNAME is not set. This is, however, not always the case. See also bug #265593. The problem could be solved temporary by the user, by doing an export USERNAME=user, but a more portable solution should be implemented. The attached patch uses Python os.getuid to this end.
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cgmail depends on: ii gconf2 2.32.3-2 GNOME configuration database syste ii python 2.6.6-14 interactive high-level object-orie ii python-dbus 0.84.0-1 simple interprocess messaging syst ii python-feedparser 5.0.1-1 Universal Feed Parser for Python ii python-gconf 2.28.1-2 Python bindings for the GConf conf ii python-gnome2 2.28.1-2 Python bindings for the GNOME desk ii python-gnomekeyring 2.30.2-1 Python bindings for the GNOME keyr ii python-gobject 2.28.4-1 Python bindings for the GObject li ii python-gst0.10 0.10.21-2+b1 generic media-playing framework (P ii python-gtk2 2.24.0-2 Python bindings for the GTK+ widge ii python-notify 0.1.1-2+b3 Python bindings for libnotify ii python-support 1.0.13 automated rebuilding support for P ii python-wnck 2.30.2-1 Python bindings for the WNCK libra ii python-xdg 0.19-3 Python library to access freedeskt cgmail recommends no packages. cgmail suggests no packages. -- no debconf information
--- /usr/share/cgmail/cGmail/service/mainloop.py~ 2010-07-09 17:51:23.000000000 +0200 +++ /usr/share/cgmail/cGmail/service/mainloop.py 2011-06-07 09:54:17.519717716 +0200 @@ -30,7 +30,7 @@ sys.exit(1) #This is seriously Eww... import os -if os.environ["USERNAME"] == "root": +if os.getuid() == 0: import sys msg = _("cGmail cannot be run as root user, please launch it \ using your normal user access.")