Failed to open lightdm configuration file

Bug #1495812 reported by Cody Garver
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Switchboard User Accounts Plug
Invalid
High
Unassigned

Bug Description

Loki/Wily:

Failed to open configuration file /etc/lightdm/lightdm.conf: No such file or directory
Failed to open configuration directory /etc/lightdm/lightdm.conf.d: Error opening directory '/etc/lightdm/lightdm.conf.d': No such file or directory
Failed to open configuration directory /etc/xdg/xdg-pantheon/lightdm/lightdm.conf.d: Error opening directory '/etc/xdg/xdg-pantheon/lightdm/lightdm.conf.d': No such file or directory
Failed to open configuration directory /etc/xdg/lightdm/lightdm.conf.d: Error opening directory '/etc/xdg/lightdm/lightdm.conf.d': No such file or directory
Failed to open configuration directory /usr/share/pantheon/lightdm/lightdm.conf.d: Error opening directory '/usr/share/pantheon/lightdm/lightdm.conf.d': No such file or directory
Failed to open configuration directory /usr/share/gnome/lightdm/lightdm.conf.d: Error opening directory '/usr/share/gnome/lightdm/lightdm.conf.d': No such file or directory
Failed to open configuration directory /usr/local/share/lightdm/lightdm.conf.d: Error opening directory '/usr/local/share/lightdm/lightdm.conf.d': No such file or directory
'[SeatDefaults] allow-guest' is not set anywhere assuming default 'true'

Cody Garver (codygarver)
Changed in elementaryos:
importance: Undecided → High
milestone: none → loki-beta1
Revision history for this message
Danielle Foré (danrabbit) wrote :

I can confirm that I also get this error message when opening the accounts plug in Wily/Loki

Changed in switchboard-plug-useraccounts:
status: New → Confirmed
no longer affects: elementaryos
Changed in switchboard-plug-useraccounts:
milestone: loki-beta1 → loki-rc1
Revision history for this message
David Howell (david-dynmeth) wrote :

This is due to the 'set_config_in_file()' not creating the key if it does not exist. The optional param of create is not being used, so defaults to false.

It finds the first /etc/lightdm/lightdm.conf file but doesn't find the key, so returns false to move on to the next conf location.

Two potential solutions:

1. create the key if it doesn't exist
2. put the key in the lightdm.conf file by default

I'm assuming 1 is the better option?

Revision history for this message
Cody Garver (codygarver) wrote :

I decided this is a non-issue because it's assuming allow-guest=true, which is what we want. And if the user disables it, it creates the file /usr/share/lightdm/lightdm.conf.d/60-guest-session.conf with that content. And if the user re-enables it, it changes the value to true accordingly.

Changed in switchboard-plug-useraccounts:
milestone: loki-rc1 → none
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.