dispvm: use tray notify for no-memory error (#877)

This commit is contained in:
Marek Marczykowski-Górecki 2014-07-03 04:09:17 +02:00
parent e5a6f58851
commit 6ce4028033

View File

@ -46,10 +46,7 @@ class QfileDaemonDvm:
qmemman_client.close()
errmsg = 'Not enough memory to create DVM. '
errmsg +='Terminate some appVM and retry.'
if os.path.exists('/usr/bin/kdialog'):
subprocess.call(['/usr/bin/kdialog', '--sorry', errmsg])
else:
subprocess.call(['/usr/bin/zenity', '--warning', '--text', errmsg])
tray_notify_error(errmsg)
return None
tray_notify("Starting new DispVM...", "red")