diff --git a/frontend/src/gbuilder/Core/Attachable.py b/frontend/src/gbuilder/Core/Attachable.py index 05b7f04..dee96e8 100644 --- a/frontend/src/gbuilder/Core/Attachable.py +++ b/frontend/src/gbuilder/Core/Attachable.py @@ -56,9 +56,15 @@ def attach(self): command += base command += " -m \"" + startpath + "\"" else: - if self.device_type == "yRouter": - command += "rxvt -T \"" + window_name + "\" -e " + screen_yrouter - else: - command += "rxvt -T \"" + window_name + "\" -e " + base + screen + if options["gnome"] == True: + if self.device_type == "yRouter": + command += "gnome-terminal -e " + "\"" + screen_yrouter + "\"" + else: + command += "gnome-terminal -e " +"\"" + base + screen +"\"" + else: + if self.device_type == "yRouter": + command += "rxvt -T \"" + window_name + "\" -e " + screen_yrouter + else: + command += "rxvt -T \"" + window_name + "\" -e " + base + screen self.shell = subprocess.Popen(str(command), shell=True) diff --git a/frontend/src/gbuilder/Core/globals.py b/frontend/src/gbuilder/Core/globals.py index f52d867..8afd9dc 100644 --- a/frontend/src/gbuilder/Core/globals.py +++ b/frontend/src/gbuilder/Core/globals.py @@ -29,7 +29,7 @@ "server":"localhost", "session":"GINI", "autoconnect":True, "localPort":"10001", "remotePort":"10000", "restore":True, - "moveAlert":True, "wserver":"192.168.54.121", "wlocalPort":"60001","wremotePort":"60000"} + "moveAlert":True, "wserver":"192.168.54.121", "wlocalPort":"60001","wremotePort":"60000", "gnome":False} mainWidgets = {"app":None, "main":None, diff --git a/frontend/src/gbuilder/UI/Configuration.py b/frontend/src/gbuilder/UI/Configuration.py index 3bcc4f2..d74f206 100644 --- a/frontend/src/gbuilder/UI/Configuration.py +++ b/frontend/src/gbuilder/UI/Configuration.py @@ -289,6 +289,7 @@ def __init__(self, parent=None): uiLayout.addWidget(self.systrayCheckBox) uiLayout.addWidget(self.restoreLayoutCheckBox) uiLayout.addWidget(self.moveAlertCheckBox) + uiLayout.addWidget(self.gnomeTerminalCheckBox) uiLayout.addWidget(QtGui.QLabel(self.tr("Grid Color: "))) uiLayout.addLayout(gridLayout) uiLayout.addWidget(QtGui.QLabel(self.tr("Background: "))) @@ -326,6 +327,7 @@ def createUICheckboxes(self): self.gridCheckBox = QtGui.QCheckBox(self.tr("Show grid")) self.moveAlertCheckBox = QtGui.QCheckBox(self.tr("Alert on Move (when started)")) self.restoreLayoutCheckBox = QtGui.QCheckBox(self.tr("Remember and restore layout")) + self.gnomeTerminalCheckBox = QtGui.QCheckBox(self.tr("Use Gnome-Terminal")) def createBrowsables(self): """ @@ -427,6 +429,7 @@ def updateSettings(self): self.smoothingCheckBox.setChecked(options["smoothing"]) self.systrayCheckBox.setChecked(options["systray"]) self.restoreLayoutCheckBox.setChecked(options["restore"]) + self.gnomeTerminalCheckBox.setChecked(options["gnome"]) self.gridLine.setText(options["gridColor"]) self.backgroundLine.setText(options["background"]) @@ -477,6 +480,7 @@ def saveOptions(self): options["systray"] = self.systrayCheckBox.isChecked() options["restore"] = self.restoreLayoutCheckBox.isChecked() options["moveAlert"] = self.moveAlertCheckBox.isChecked() + options["gnome"] = self.gnomeTerminalCheckBox.isChecked() options["gridColor"] = self.gridLine.text() options["background"] = self.backgroundLine.text()