freebsd-ports/x11/lightdm-gtk-greeter-settings/files/patch-lightdm__gtk__greeter__settings_helpers.py
Ben Woods 4deb13ef23 Add new port x11/lightdm-gtk-greeter-settings
Just a small dialog to make it easier for users to modify the settings
of lightdm-gtk-greeter.

WWW: https://launchpad.net/lightdm-gtk-greeter-settings
2020-03-08 03:11:46 +00:00

13 lines
700 B
Python

--- lightdm_gtk_greeter_settings/helpers.py.orig 2020-03-08 02:41:40 UTC
+++ lightdm_gtk_greeter_settings/helpers.py
@@ -184,8 +184,8 @@ def check_path_accessibility(path, file=True, executab
try:
uid, gids = check_path_accessibility.id_cached_data
except AttributeError:
- files = glob.glob('/etc/lightdm/lightdm.d/*.conf')
- files += ['/etc/lightdm/lightdm.conf']
+ files = glob.glob('%%LOCALBASE%%/etc/lightdm/lightdm.d/*.conf')
+ files += ['%%LOCALBASE%%/etc/lightdm/lightdm.conf']
config = configparser.RawConfigParser(strict=False)
config.read(files)
username = config.get('LightDM', 'greeter-user', fallback='lightdm')