From 2221dcee36aa38181256ebb3c6cf30dfae38da12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 15 May 2014 23:49:02 +0200 Subject: [PATCH 1/4] Do not crash when no notification service present --- qubesmanager/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 423374c..be2e810 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -28,7 +28,7 @@ import fcntl import errno from PyQt4.QtCore import * from PyQt4.QtGui import * -from PyQt4.QtDBus import QDBus,QDBusVariant +from PyQt4.QtDBus import QDBus,QDBusVariant, QDBusMessage from PyQt4.QtDBus import QDBusConnection from PyQt4.QtDBus import QDBusInterface,QDBusAbstractAdaptor @@ -1564,11 +1564,14 @@ class QubesTrayIcon(QSystemTrayIcon): self.connect (self, SIGNAL("activated (QSystemTrayIcon::ActivationReason)"), self.icon_clicked) + self.tray_notifier_type = None self.tray_notifier = QDBusInterface("org.freedesktop.Notifications", "/org/freedesktop/Notifications", "org.freedesktop.Notifications", session_bus) srv_info = self.tray_notifier.call("GetServerInformation") - self.tray_notifier_type = srv_info.arguments()[1] + if srv_info.type() == QDBusMessage.ReplyMessage and len(srv_info + .arguments()) > 1: + self.tray_notifier_type = srv_info.arguments()[1] def update_blk_menu(self): global manager_window From 44fe1cc845eec33ab9a14b41458ddf25ec161aba Mon Sep 17 00:00:00 2001 From: Hansi Date: Sat, 17 May 2014 19:21:00 +0200 Subject: [PATCH 2/4] small update to add "autostart" checkbox to the basic settings dialog --- qubesmanager/settings.py | 16 ++++++++++++++++ settingsdlg.ui | 25 +++++++++++++++++++------ 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index c872b5f..9854722 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -289,6 +289,12 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): else: self.run_in_debug_mode.setVisible(False) + if hasattr(self.vm, 'autostart'): + self.autostart_vm.setVisible(True) + self.autostart_vm.setChecked(self.vm.autostart) + else: + self.autostart_vm.setVisible(False) + if hasattr(self.vm, 'seamless_gui_mode'): self.seamless_gui.setVisible(True) self.seamless_gui.setChecked(self.vm.seamless_gui_mode) @@ -405,6 +411,16 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): except Exception as ex: msg.append(str(ex)) + #autostart_vm + try: + if self.autostart_vm.isVisible(): + if self.vm.autostart != self.autostart_vm.isChecked(): + self.vm.autostart = self.autostart_vm.isChecked() + self.anything_changed = True + except Exception as ex: + msg.append(str(ex)) + + #seamless_gui try: if self.seamless_gui.isVisible(): if self.vm.seamless_gui_mode != self.seamless_gui.isChecked(): diff --git a/settingsdlg.ui b/settingsdlg.ui index e448740..a74534a 100644 --- a/settingsdlg.ui +++ b/settingsdlg.ui @@ -119,12 +119,23 @@ - - - - Seamless GUI - - + + + + + + Start VM automatically on boot + + + + + + + Seamless GUI + + + + @@ -1140,6 +1151,8 @@ netVM include_in_backups run_in_debug_mode + autostart_vm + seamless_gui max_priv_storage init_mem max_mem_size From 2508365455a19bfa987c5dbb5aabc49e902fd9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 17 May 2014 21:43:51 +0200 Subject: [PATCH 3/4] whitespace fix --- settingsdlg.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settingsdlg.ui b/settingsdlg.ui index a74534a..f960774 100644 --- a/settingsdlg.ui +++ b/settingsdlg.ui @@ -120,9 +120,9 @@ - + - + Start VM automatically on boot From d263245a0b168358d7d14a48ec6fb54dac5b4a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 17 May 2014 21:48:41 +0200 Subject: [PATCH 4/4] version 2.0.30 --- version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version b/version index 3df5a46..07a2199 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.29 +2.0.30