[firstboot] Disable minimize and maximize buttons on s-c-u (#747829)

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

 



---
 firstboot.spec         |    3 ++-
 modules/create_user.py |   19 +++----------------
 2 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/firstboot.spec b/firstboot.spec
index 8e950a0..93e9a18 100644
--- a/firstboot.spec
+++ b/firstboot.spec
@@ -18,7 +18,8 @@ BuildRequires: gettext
 BuildRequires: python-devel, python-setuptools-devel
 BuildRequires: systemd-units
 Requires: pygtk2, python
-Requires: setuptool, libuser-python, system-config-users, system-config-date
+Requires: setuptool, libuser-python, system-config-date
+Requires: system-config-users >= 1.2.111-1
 Requires: authconfig-gtk, python-meh
 Requires: system-config-keyboard
 Requires: python-ethtool
diff --git a/modules/create_user.py b/modules/create_user.py
index 5408f67..3050852 100644
--- a/modules/create_user.py
+++ b/modules/create_user.py
@@ -39,6 +39,7 @@ _ = lambda x: gettext.ldgettext("firstboot", x)
 N_ = lambda x: x
 
 sys.path.append("/usr/share/system-config-users")
+import mainWindow
 import userGroupCheck
 
 class moduleClass(Module):
@@ -512,19 +513,5 @@ class moduleClass(Module):
             confirmIcon.hide()
 
     def _runSCU(self, *args):
-        i = gtk.Invisible()
-        i.grab_add()
-
-        pid = start_process("/usr/bin/system-config-users")
-
-        while True:
-            while gtk.events_pending():
-                gtk.main_iteration_do()
-
-            child_pid, status = os.waitpid(pid, os.WNOHANG)
-            if child_pid == pid:
-                break
-            else:
-                time.sleep(0.1)
-
-        i.grab_remove ()
+        reload(mainWindow)
+        win = mainWindow.mainWindow(firstboot=True)
-- 
1.7.5.4

_______________________________________________
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