Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 582698 Details for
Bug 819559
acpid's /etc/acpi/actions/power.sh malfunction in kde
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch acpid.power.sh to use systemd-loginctl too
acpid.power.sh.patch (text/plain), 740 bytes, created by
Rex Dieter
on 2012-05-07 15:23:09 UTC
(
hide
)
Description:
patch acpid.power.sh to use systemd-loginctl too
Filename:
MIME Type:
Creator:
Rex Dieter
Created:
2012-05-07 15:23:09 UTC
Size:
740 bytes
patch
obsolete
>diff --git a/acpid.power.sh b/acpid.power.sh >index dfd2a6d..0385981 100644 >--- a/acpid.power.sh >+++ b/acpid.power.sh >@@ -2,7 +2,16 @@ > > PATH=/sbin:/bin:/usr/bin > >-# Get the ID of the first active X11 session: >+# Check session status using systemd >+session_ids=$(systemd-loginctl list-sessions | awk '{print $1}') >+for session in ${session_ids} ; do >+ session_status=$(systemd-loginctl session-status ${session}) >+ if [ -n "$(echo "${session_status}" | grep "Active: yes" 2> /dev/null)" ]; then >+ echo "${session_status}" | grep -e '\(gnome-settings-daemon\|kded4\|xfce4-powermanager\)' >& /dev/null && exit 0 >+ fi >+done >+ >+# Get the ID of the first active X11 session: using ConsoleKit > uid_session=$( > ck-list-sessions | \ > awk '
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 819559
:
582698
|
591774
|
591775