Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 253764 | Differences between
and this patch

Collapse All | Expand All

(-)acpid-2.0.5/samples/powerbtn/powerbtn.sh (+9 lines)
Lines 24-29 Link Here
24
        export XUSER=$user
24
        export XUSER=$user
25
}
25
}
26
26
27
getXconsole() {
28
        console=`fgconsole`;
29
        displaynum=`ps t tty$console | sed -n -re 's,.*/X .*:([0-9]+).*,\1,p'`
30
        if [ x"$displaynum" != x"" ]; then
31
                export DISPLAY=":$displaynum"
32
                getXuser
33
        fi
34
}
35
27
# Skip if we are just in the middle of resuming.
36
# Skip if we are just in the middle of resuming.
28
test -f /var/lock/acpisleep && exit 0
37
test -f /var/lock/acpisleep && exit 0
29
38

Return to bug 253764