[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 3/7] Connect nm-connection-editor to network config button.



---
 iw/network_gui.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index e6c223d..a7b52da 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -25,6 +25,7 @@ import string
 from iw_gui import *
 import gui
 import network
+import iutil
 
 from constants import *
 import gettext
@@ -43,6 +44,8 @@ class NetworkWindow(InstallWindow):
         self.hostnameEntry = self.xml.get_widget("hostnameEntry")
         self.hostnameEntry.set_text(self.hostname)
 
+        self.xml.get_widget("netconfButton").connect("clicked", self._NMConfig)
+
         # pressing Enter in confirm == clicking Next
         self.hostnameEntry.connect("activate",
                                    lambda w: self.ics.setGrabNext(1))
@@ -81,3 +84,8 @@ class NetworkWindow(InstallWindow):
 
         self.anaconda.network.hostname = hostname
         return None
+
+    def _NMConfig(self, *args):
+        iutil.execWithRedirect("/usr/bin/nm-connection-editor", [],
+                               stdout = "/dev/tty5",
+                               stderr = "/dev/tty5")
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]