Disable minimize and maximize buttons on s-c-u (#747829)
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|