From 2abe0649d439c17437a1b615e8535025b5299133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 15 May 2014 18:35:01 +0200 Subject: [PATCH] dispvm: show "DisposableVM creation failed" msg using tray notification (#821) --- 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 3fdd38ed..82eaa203 100755 --- a/dispvm/qfile-daemon-dvm +++ b/dispvm/qfile-daemon-dvm @@ -79,10 +79,7 @@ class QfileDaemonDvm: '-l', str(label.index)]) qmemman_client.close() if retcode != 0: - if os.path.exists('/usr/bin/kdialog'): - 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']) + tray_notify_error('DisposableVM creation failed, see qubes-restore.log') qvm_collection.unlock_db() return None f = open('/var/run/qubes/dispVM.xid', 'r');