Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 136681 Details for
Bug 199985
sys-power/hibernate-script - kopete scriptlet
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
kopete-scriptlet
kopete (text/plain), 1.62 KB, created by
Michael Zenke
on 2007-11-22 15:10:40 UTC
(
hide
)
Description:
kopete-scriptlet
Filename:
MIME Type:
Creator:
Michael Zenke
Created:
2007-11-22 15:10:40 UTC
Size:
1.62 KB
patch
obsolete
># -*- sh -*- ># vim:ft=sh:ts=8:sw=4:noet > > >AddConfigHandler KopeteOptions >AddConfigHelp "LogoutKopete <boolean>" "Changes all locally running Koepte's status to offline before suspending." > >LogoutKopete() >{ > [ x"$LOGOUT_KOPETE" != "x1" ] && return 0 > > if ! ps ax | grep -q '[d]copserver' ; then > vecho 1 'No KDE sessions detected. Not disconnecting Kopete.' > return 0 > fi > > if ! command -v dcop > /dev/null 2>&1 ; then > for i in /usr/kde/*/bin/dcop /opt/kde/bin/dcop ; do > if [ -x "$i" ] ; then > PATH=$PATH:${i%%/dcop} > export PATH > break > fi > done > fi > > if ! command -v dcop > /dev/null 2>&1 ; then > vecho 0 'Cannot disconnect Kopete. `dcop` program not found.' > return 1 > fi > > local avail_sessions > local session > > avail_sessions=`dcop --all-users --list-sessions | grep '.DCOP.*__0'` > > ShouldLock || return 0 > > for session in $avail_sessions; do > #checking for running Kopete in current session > kopete=`dcop --session "$session" --all-users kopete 2>/dev/null` > if [ x"$kopete" != "x" ]; then > dcop --session "$session" --all-users kopete default disconnectAll > /dev/null 2>&1 > else > vecho 2 "No running Kopete in $session!" > fi > done > > return 0 >} > >KopeteOptions() >{ > case "$1" in > logoutkopete) > if BoolIsOn "$1" "$2"; then > LOGOUT_KOPETE=1 > if [ -z "$KOPETELOGOUT_HOOKED" ]; then > AddSuspendHook 19 LogoutKopete > KOPETELOGOUT_HOOKED=1 > fi > else > LOGOUT_KOPETE=0 > fi > ;; > *) > return 1 > ;; > esac >} > >ShouldLock() { > case "/$SWSUSP2_NO_SUSPEND/$USUSPEND_NO_SUSPEND/$SWSUSP2_BUG_REPORT/" in > *1*) > vecho 1 'Not disconnect Kopete with --no-suspend/-n' > return 1 > ;; > esac > return 0 >}
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 Raw
Actions:
View
Attachments on
bug 199985
: 136681