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:
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...?
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 settings
$ light-locker-
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...?