kde-guidance displayconfig fails to load if laptop-detect is not installed

Bug #60309 reported by Rocco Stanzione
2
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Medium
Simon Edwards

Bug Description

Here's the python trace:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_displayconfig
  File "/var/lib/python-support/python2.4/displayconfig.py", line 1687, in create_displayconfig
    return DisplayApp(parent, name)
  File "/var/lib/python-support/python2.4/displayconfig.py", line 443, in __init__
    self.xsetup = XSetup(self.xconfigpath)
  File "/var/lib/python-support/python2.4/displayconfigabstraction.py", line 251, in __init__
    if subprocess.call(['/usr/sbin/laptop-detect'])==0:
  File "/usr/lib/python2.4/subprocess.py", line 412, in call
    return Popen(*args, **kwargs).wait()
  File "/usr/lib/python2.4/subprocess.py", line 542, in __init__
    errread, errwrite)
  File "/usr/lib/python2.4/subprocess.py", line 975, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

So, either kde-guidance should depend on laptop-detect or it should fail more gracefully in its absence.

Revision history for this message
Rocco Stanzione (trappist) wrote :

This should do the trick. Does do the trick.

Changed in kde-guidance:
assignee: nobody → simon-simonzone
Kenny Duffus (kduffus)
Changed in kde-guidance:
importance: Untriaged → Medium
Revision history for this message
Sebastian Kügler (sebasje) wrote :

The trick of screwing up the indentation? ;-)

I've fixed the indentation and merged it, thanks!

Changed in kde-guidance:
status: Unconfirmed → Fix Committed
Changed in kde-guidance:
status: Fix Committed → Fix Released
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.