JezerM / web-greeter

A modern, visually appealing greeter for LightDM.
https://jezerm.github.io/web-greeter-page/
GNU General Public License v3.0
203 stars 10 forks source link

IndexError: list index out of range #36

Closed rda0 closed 2 years ago

rda0 commented 2 years ago

Environment

Bug description

Probably because there are no users with uid >= 1000 locally on the system. We use ldap with uids starting from 1001. Our /etc/login.defs:

UID_MIN                 500
UID_MAX                 999
#SYS_UID_MIN              100
#SYS_UID_MAX              999
GID_MIN                 500
GID_MAX                 999
#SYS_GID_MIN              100
#SYS_GID_MAX              999

Error log:

==> /var/log/lightdm/seat0-greeter.log <==
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/web-greeter/__main__.py", line 118, in <module>
    browser.greeter = Greeter()
  File "/usr/lib/web-greeter/bridge/Greeter.py", line 110, in __init__
    self._determine_shared_data_directory_path()
  File "/usr/lib/web-greeter/bridge/Greeter.py", line 118, in _determine_shared_data_directory_path
    user = LightDMUsers.get_users()[0]
IndexError: list index out of range