[acpid] Silenced possible ck-list-sessions errors in power.sh
Jaroslav Škarvada
jskarvad at fedoraproject.org
Thu Jun 14 13:03:04 UTC 2012
commit ade213e454ee6bf95322fff8a5ca415faf07b8ac
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Thu Jun 14 15:03:01 2012 +0200
Silenced possible ck-list-sessions errors in power.sh
acpid.power.sh | 2 +-
acpid.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/acpid.power.sh b/acpid.power.sh
index a8e0b18..c13cf7e 100644
--- a/acpid.power.sh
+++ b/acpid.power.sh
@@ -13,7 +13,7 @@ done
# Get the ID of the first active X11 session: using ConsoleKit
uid_session=$(
-ck-list-sessions | \
+ck-list-sessions 2>/dev/null | \
awk '
/^Session[0-9]+:$/ { uid = active = x11 = "" ; next }
{ gsub(/'\''/, "", $3) }
diff --git a/acpid.spec b/acpid.spec
index 8c68472..aad00ba 100644
--- a/acpid.spec
+++ b/acpid.spec
@@ -1,7 +1,7 @@
Summary: ACPI Event Daemon
Name: acpid
Version: 2.0.16
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source: http://tedfelix.com/linux/acpid-%{version}.tar.xz
@@ -129,6 +129,9 @@ fi
%changelog
+* Thu Jun 14 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.16-3
+- Silenced possible ck-list-sessions errors in power.sh
+
* Thu Jun 14 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.16-2
- Added support for systemd-loginctl list-sessions
Resolves: rhbz#819559
More information about the scm-commits
mailing list