diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py
index db10e0a..adcf21c 100755
--- a/qubesmanager/settings.py
+++ b/qubesmanager/settings.py
@@ -136,7 +136,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
####### services tab
self.__init_services_tab__()
- self.service_line_edit.returnPressed.connect(self.__add_service__)
+ self.service_line_edit.lineEdit().returnPressed.connect(
+ self.__add_service__)
self.add_srv_button.clicked.connect(self.__add_service__)
self.remove_srv_button.clicked.connect(self.__remove_service__)
@@ -943,8 +944,25 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
QtCore.SIGNAL("itemClicked(QListWidgetItem *)"),
self.services_item_clicked)
+ # add suggested services
+ self.service_line_edit.addItem('clocksync')
+ self.service_line_edit.addItem('crond')
+ self.service_line_edit.addItem('cups')
+ self.service_line_edit.addItem('disable-default-route')
+ self.service_line_edit.addItem('disable-dns-server')
+ self.service_line_edit.addItem('meminfo-writer')
+ self.service_line_edit.addItem('network-manager')
+ self.service_line_edit.addItem('qubes-firewall')
+ self.service_line_edit.addItem('qubes-network')
+ self.service_line_edit.addItem('qubes-update-check')
+ self.service_line_edit.addItem('qubes-updates-proxy')
+ self.service_line_edit.addItem('qubes-yum-proxy')
+ self.service_line_edit.addItem('updates-proxy-setup')
+ self.service_line_edit.addItem('yum-proxy-setup')
+ self.service_line_edit.setEditText("")
+
def __add_service__(self):
- srv = str(self.service_line_edit.text()).strip()
+ srv = str(self.service_line_edit.currentText()).strip()
if srv != "":
if srv in self.new_srv_dict:
QtGui.QMessageBox.information(
diff --git a/ui/settingsdlg.ui b/ui/settingsdlg.ui
index b9ea296..b255690 100644
--- a/ui/settingsdlg.ui
+++ b/ui/settingsdlg.ui
@@ -1275,51 +1275,44 @@ border-width: 1px;
Services
- -
-
-
- -
-
-
-
+
-
+
+
+ Qt::Vertical
-
-
- :/add.png:/add.png
-
-
+
- 24
- 24
+ 20
+ 40
-
+
- -
+
-
- -
+
-
Checked services will be turned on.
- -
+
-
Unchecked services will be turned off.
- -
+
-
Unlisted services will follow default settings.
- -
+
-
@@ -1336,18 +1329,32 @@ border-width: 1px;
- -
-
-
- Qt::Vertical
+
-
+
+
+ Services listed here are only base Qubes services - other services may be installed and implemented.
-
+
+ true
+
+
+
+ -
+
+
+
+
+
+
+ :/add.png:/add.png
+
+
- 20
- 40
+ 24
+ 24
-
+