appmenus: do not force GUI connection when retrieving appmenus

There could be no GUI available - for example at firstboot.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-10 23:59:30 +01:00
parent e76007fe20
commit 735788dbd6

View File

@ -118,7 +118,8 @@ def get_appmenus(vm):
if appmenus_line_count == 0:
raise QubesException("Line count limit exceeded")
else:
p = vm.run('QUBESRPC qubes.GetAppmenus dom0', passio_popen=True)
p = vm.run('QUBESRPC qubes.GetAppmenus dom0', passio_popen=True,
gui=False)
while appmenus_line_count > 0:
untrusted_line = p.stdout.readline(appmenus_line_size)
if untrusted_line == "":