![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package awesome-branding-openSUSE for openSUSE:Factory checked in at 2014-05-23 07:27:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/awesome-branding-openSUSE (Old) and /work/SRC/openSUSE:Factory/.awesome-branding-openSUSE.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "awesome-branding-openSUSE" Changes: -------- --- /work/SRC/openSUSE:Factory/awesome-branding-openSUSE/awesome-branding-openSUSE.changes 2013-07-07 22:17:00.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.awesome-branding-openSUSE.new/awesome-branding-openSUSE.changes 2014-05-23 07:27:33.000000000 +0200 @@ -1,0 +2,6 @@ +Thu May 15 05:56:09 UTC 2014 - glin@suse.com + +- Add awesome-branding-openSUSE-systemctl.patch to use systemctl + to shutdown and reboot + +------------------------------------------------------------------- New: ---- awesome-branding-openSUSE-systemctl.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ awesome-branding-openSUSE.spec ++++++ --- /var/tmp/diff_new_pack.5oC4Js/_old 2014-05-23 07:27:35.000000000 +0200 +++ /var/tmp/diff_new_pack.5oC4Js/_new 2014-05-23 07:27:35.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package awesome-branding-openSUSE # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 Togan Muftuoglu <toganm@opensuse.org> # # All modifications and additions to the file contributed by third parties @@ -32,6 +32,8 @@ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %name-%git_version.tar.xz +# PATCH-FIX-UPSTREAM awesome-branding-openSUSE-systemctl.patch glin@suse.com -- Use systemctl to allow the local user to reboot and shutdown the system without typing the password +Patch0: awesome-branding-openSUSE-systemctl.patch Requires: awesome-freedesktop Requires: awesome-vicious Requires: gnome-icon-theme @@ -47,6 +49,7 @@ %prep %setup -q -n %name-%git_version +%patch0 -p1 %build ++++++ awesome-branding-openSUSE-systemctl.patch ++++++
From 7af68ceb7be0a0d5881f1119dcfdc5cc338ddea6 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin <glin@suse.com> Date: Thu, 15 May 2014 16:46:15 +0800 Subject: [PATCH] Use systemctl to shutdown and reboot
By default, systemd allows the local user to shutdown and reboot the system, so we can use systemctl to do that without typing the password. Signed-off-by: Gary Ching-Pang Lin <glin@suse.com> --- rc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.lua b/rc.lua index dc12186..c277fc8 100644 --- a/rc.lua +++ b/rc.lua @@ -129,8 +129,8 @@ end mysystem_menu = { { 'Lock Screen', 'xscreensaver-command -lock', freedesktop.utils.lookup_icon({ icon = 'system-lock-screen' }) }, { 'Logout', awesome.quit, freedesktop.utils.lookup_icon({ icon = 'system-log-out' }) }, - { 'Reboot System', 'xdg-su -c "shutdown -r now"', freedesktop.utils.lookup_icon({ icon = 'reboot-notifier' }) }, - { 'Shutdown System', 'xdg-su -c "shutdown -h now"', freedesktop.utils.lookup_icon({ icon = 'system-shutdown' }) } + { 'Reboot System', 'systemctl reboot', freedesktop.utils.lookup_icon({ icon = 'reboot-notifier' }) }, + { 'Shutdown System', 'systemctl poweroff', freedesktop.utils.lookup_icon({ icon = 'system-shutdown' }) } } myawesome_menu = { -- 1.8.4.5 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org