dispvm: show "DisposableVM creation failed" msg using tray notification (#821)
This commit is contained in:
parent
2bde8d906b
commit
2abe0649d4
@ -79,10 +79,7 @@ class QfileDaemonDvm:
|
|||||||
'-l', str(label.index)])
|
'-l', str(label.index)])
|
||||||
qmemman_client.close()
|
qmemman_client.close()
|
||||||
if retcode != 0:
|
if retcode != 0:
|
||||||
if os.path.exists('/usr/bin/kdialog'):
|
tray_notify_error('DisposableVM creation failed, see qubes-restore.log')
|
||||||
subprocess.call(['/usr/bin/kdialog', '--sorry', 'DisposableVM creation failed, see qubes-restore.log'])
|
|
||||||
else:
|
|
||||||
subprocess.call(['/usr/bin/zenity', '--warning', '--text', 'DisposableVM creation failed, see qubes-restore.log'])
|
|
||||||
qvm_collection.unlock_db()
|
qvm_collection.unlock_db()
|
||||||
return None
|
return None
|
||||||
f = open('/var/run/qubes/dispVM.xid', 'r');
|
f = open('/var/run/qubes/dispVM.xid', 'r');
|
||||||
|
Loading…
Reference in New Issue
Block a user