can't run hp-check without GUI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Running hp-check without a GUI results in:
:Traceback (most recent call last):
: File "/bin/hp-check", line 476, in <module>
: core.init()
: File "/usr/share/
: self.check_
: File "/usr/share/
: self.have_
: File "/usr/share/
: import pynotify
: File "/usr/lib/
: import gtk
: File "/usr/lib/
: _init()
: File "/usr/lib/
: _gtk.init_check()
:RuntimeError: could not open display
Hi Jiri Popelka,
Thank you for providing the patch.
We modified the patch to as follows:-
@@ -1021,7 +1021,1 @@ class CoreInstall( object) :
import pynotify
- except ImportError:
+ except ImportError, RuntimeError:
return False
return True
Thanks & Regards,
Amarnath