[cinnamon] cinnamon-settings-users: set wheel instead of sudo

leigh123linux leigh123linux at fedoraproject.org
Sun Feb 9 15:31:33 UTC 2014


commit 113da8008ebd6a24eca67990be56ee4d3036b84a
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Sun Feb 9 15:32:00 2014 +0000

    cinnamon-settings-users: set wheel instead of sudo

 cinnamon.spec   |    6 +++++-
 set_wheel.patch |   14 ++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/cinnamon.spec b/cinnamon.spec
index 3462cb3..356e74a 100644
--- a/cinnamon.spec
+++ b/cinnamon.spec
@@ -2,7 +2,7 @@
 
 Name:           cinnamon
 Version:        2.0.14
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Window management and application launching for GNOME
 License:        GPLv2+ and LGPLv2+
 URL:            http://cinnamon.linuxmint.com 
@@ -33,6 +33,7 @@ Patch8:         upower_calender_fix.patch
 %if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} > 19)
 Patch9:         remove_bluetootoh.patch
 %endif
+Patch10:        set_wheel.patch
 
 %global clutter_version 1.12.2
 %global cjs_version 1.9.1
@@ -240,6 +241,9 @@ fi
 %{_mandir}/man1/*
 
 %changelog
+* Sun Feb 09 2014 Leigh Scott <leigh123linux at googlemail.com> - 2.0.14-12
+- cinnamon-settings-users: set wheel instead of sudo
+
 * Fri Feb 07 2014 Leigh Scott <leigh123linux at googlemail.com> - 2.0.14-11
 - rebuilt for new cogl .so version
 
diff --git a/set_wheel.patch b/set_wheel.patch
new file mode 100644
index 0000000..3723083
--- /dev/null
+++ b/set_wheel.patch
@@ -0,0 +1,14 @@
+--- a/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py
++++ b/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py
+@@ -734,9 +734,9 @@ class Module:
+             pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/cinnamon/faces/user-generic.png", 48, 48)
+             description = "<b>%s</b>\n%s" % (fullname, username)
+             piter = self.users.append(None, [new_user, pixbuf, description])
+-            # Add the user to his/her own group and sudo if Administrator was selected
++            # Add the user to his/her own group and wheel if Administrator was selected
+             if dialog.account_type_combo.get_active() == 1:
+-                os.system("usermod %s -G %s,sudo" % (username, username)) 
++                os.system("usermod %s -G %s,wheel" % (username, username)) 
+             else:
+                 os.system("usermod %s -G %s" % (username, username))
+             self.load_groups()               


More information about the scm-commits mailing list