From 6ce4028033a2f6bf0e4492791122ee8ede4e6761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 3 Jul 2014 04:09:17 +0200 Subject: [PATCH] dispvm: use tray notify for no-memory error (#877) --- dispvm/qfile-daemon-dvm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dispvm/qfile-daemon-dvm b/dispvm/qfile-daemon-dvm index 90907671..73d0d08e 100755 --- a/dispvm/qfile-daemon-dvm +++ b/dispvm/qfile-daemon-dvm @@ -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")