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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux