Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
virt-manager
virtman-check-for-valid-display.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtman-check-for-valid-display.patch of Package virt-manager
Index: virt-manager-1.0.1/virt-manager =================================================================== --- virt-manager-1.0.1.orig/virt-manager +++ virt-manager-1.0.1/virt-manager @@ -177,8 +177,11 @@ def main(): from gi.repository import Gtk # pylint: disable=E0611 leftovers = sys.argv[1:] - # This will error if Gtk wasn't correctly initialized - Gtk.Window() + if os.environ.has_key('DISPLAY') and os.environ['DISPLAY']: + # This will error if Gtk wasn't correctly initialized + Gtk.Window() + else: + raise Exception("Error starting virt-manager: No graphical display found") globals()["Gtk"] = Gtk import virtManager.config
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor