light-locker-settings reverts to "never" after reboot.

Bug #1327835 reported by Bib
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
light-locker-settings
New
Undecided
Unassigned
light-locker-settings (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi
I'm trying light-locker after I upgraded to Trusty because I don't want the locked screen background to be the same as my desktop wallpaper.
I find that "Blank screen after" and "Switch off display after.." both reverts to "Never" after I reboot my system and Super+L won't display the same background as light-dm when the system is powered on.

Revision history for this message
Sean Davis (bluesabre) wrote :

Hi, can you give me a bit more information? Are you using Ubuntu, Lubuntu, Xubuntu, something else?

Revision history for this message
Dustin Falgout (lots0logs) wrote :

I can confirm this issue on Arch Linux. Here is the traceback:

Traceback (most recent call last):
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 176, in apply_cb
    self.apply_settings()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 629, in apply_settings
    self.apply_screen_blank_settings(settings)
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 691, in apply_screen_blank_settings
    keyfile = self.get_screensaver_autostart()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 400, in get_screensaver_autostart
    self.get_autostart('screensaver-settings.desktop', defaults)
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 358, in get_autostart
    GLib.KeyFileFlags.KEEP_TRANSLATIONS)
GLib.Error: g-key-file-error-quark: Valid key file could not be found in search dirs (2)

Revision history for this message
Rifester (rife-mark) wrote :

I can also confirm this behaviour on Arch Linux. Light-Locker-Setting will not store the changed settings after they are applied.

Revision history for this message
Rainer Müller (raimue) wrote :

The problem is that light-locker-settings fails if the expected file does not already exist. There is a simple workaround by creating an empty file in that location before launching light-locker-settings:

    $ touch ~/.config/autostart/screensaver-settings.desktop
    $ light-locker-settings

I am also attaching a patch that kind of solves this problem by masking any error that the load function might raise. I do not really understand the GLib python bindings here, though. Apparently it is supposed to return an error code, but at the same time it always raises a generic GLib.Error, so the return value cannot be checked at all...?

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "light-locker-settings-ignore-error.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
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.