Light Locker Settings Will Not Open

Bug #1323807 reported by Doug Nordquist
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
light-locker-settings (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Xubuntu 14.04: I had been trying to change settings in "Light Locker Settings." One of the settings I changed was to disable light locker (don't know if this matters). Now, when I open light locker settings from the setting manager, the window opens and immediately closes.

Revision history for this message
wgoltz (wgoltz) wrote :

The file light-locker-settings.desktop in ~/.config/autostart might be bad. Try replacing it with the same file from /etc/xdg/autostart. You might have to change the file's ownership with chown. This fixed this problem for me. As for figuring out which settings are needed to get the screen saver to do what you want, I have no idea. Good luck!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfdesktop4 (Ubuntu):
status: New → Confirmed
affects: xfdesktop4 (Ubuntu) → light-locker-settings (Ubuntu)
Revision history for this message
Simon Steinbeiß (ochosi) wrote :

Otherwise, could you try to run light-locker-settings from a terminal and let us know what the output is? Thanks!

Changed in light-locker-settings (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for light-locker-settings (Ubuntu) because there has been no activity for 60 days.]

Changed in light-locker-settings (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jorge (jorgedavidferreira) wrote :

Same issue. After calling light-locker-settings on terminal i get this trace. Hope it helps, i was actually looking for a fix on why the screen blanks/goes off every 10min or so (against power settings)... :(

Traceback (most recent call last):
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 541, in <module>
    main = LightLockerSettings()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 97, in __init__
    self.init_settings()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 240, in init_settings
    use_light_locker = settings['light-locker-enabled']
TypeError: 'NoneType' object has no attribute '__getitem__'

Revision history for this message
Jorge (jorgedavidferreira) wrote :

On a closer look, if i edit /usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py and comment lines 235, 236 and 237 (related to loading user settings) it will load system wide settings correctly and then show the application form. since the user file was auto-created it seems there is an issue with it's creation.

Copying system's /etc/xdg/autostart/light-locker.desktop to ~/.config/autostart and calling light-locker-settings loads the form with success.

Revision history for this message
Jorge (jorgedavidferreira) wrote :

Further info provided in the comments. Seems to be related to structure or settings in the initial user-specific config py file.

Changed in light-locker-settings (Ubuntu):
status: Expired → Confirmed
Revision history for this message
gerry_the_hat (gerry-the-hat) wrote :

Faced the same error. Reinstalled, but without success.

$ light-locker-settings
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GLib, Gio
Traceback (most recent call last):
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 697, in <module>
    main = LightLockerSettings()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 98, in __init__
    self.init_settings()
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 454, in init_settings
    if self.check_running_process("xfce4-power-manager"):
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 219, in check_running_process
    for pid in psutil.get_pid_list():
AttributeError: 'module' object has no attribute 'get_pid_list'

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu Package testing tracker.

A list of all reports related to this bug can be found here:
http://packages.qa.ubuntu.com/qatracker/reports/bugs/1323807

tags: added: package-qa-testing
Revision history for this message
Florian Klug (flurl) wrote :

Seems that the psutil api changed some time ago.
After changing in /usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py all calls to "psutil.get_pid_list()" to "psutil.pids()" light-locker-settings runs

Revision history for this message
d_vinicio (v-akerax) wrote :

@Florian

This works for me. Thanks.

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.