mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-05 21:57:42 +03:00
virt-install: Default to --graphics even if DISPLAY is unset
This was a weird bit of logic that tries to be smart, but there isn't a clear corrolation between DISPLAY being unset and whether the user wants graphics or not. Make the default consistent, some people may need to adjust to --nographics
This commit is contained in:
parent
e3de3d8b69
commit
c26512926d
@ -19,7 +19,6 @@
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
@ -241,10 +240,6 @@ def _determine_default_graphics(guest, default_override):
|
||||
guest.skip_default_graphics = True
|
||||
return
|
||||
|
||||
if "DISPLAY" not in os.environ.keys():
|
||||
logging.debug("DISPLAY is not set: defaulting to nographics.")
|
||||
guest.skip_default_graphics = True
|
||||
|
||||
|
||||
def convert_old_graphics(guest, options, default_override=None):
|
||||
vnc = options.vnc
|
||||
|
Loading…
x
Reference in New Issue
Block a user