Public bug reported: When there's a process running as uid that doesn't have an entry in /etc/passwd. E.g. when running inside linux containers.
~$ light-locker-settings ** (light-locker-settings.py:18760): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-W03uyYgETk: Verbindungsaufbau abgelehnt (light-locker-settings.py:18760): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2769:41: Expected a valid selector Traceback (most recent call last): File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 552, in <module> main = LightLockerSettings() File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 97, in __init__ self.init_settings() File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 249, in init_settings if self.check_running_process("xfce4-session"): File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 196, in check_running_process if p.username == username: File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 442, in username return pwd.getpwuid(self.uids.real).pw_name KeyError: 'getpwuid(): uid not found: 81' ** Affects: light-locker-settings (Ubuntu) Importance: Undecided Status: New ** Patch added: "Possible fix" https://bugs.launchpad.net/bugs/1332781/+attachment/4136030/+files/light-locker-settings-p-username-fix-01.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1332781 Title: light-locker-settings fails when lxc-container runs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/light-locker-settings/+bug/1332781/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs