[kopete-bugs] [Bug 162739] Auto-Away On Desktop Lock
Daniel Eckl
daniel.eckl at gmx.de
Tue Jul 21 14:09:45 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=162739
Daniel Eckl <daniel.eckl at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.eckl at gmx.de
--- Comment #2 from Daniel Eckl <daniel eckl gmx de> 2009-07-21 14:09:42 ---
I think this is not a duplicate of Bug 155061. Over there it's about the idle
away does not kick in after being idle long enough. What you (and me) wants to
do is that kopete goes away as soon as you lock the screen.
While this was built-in feature in KDE3's kopete, this is a bad regression IMHO
in KDE4, because there is no option for this anymore. What you could do would
just be a dirty hack for now. This would be (with root powers):
rename kscreenlocker, e.g.
mv /usr/lib/kde4/libexec/kscreenlocker /usr/lib/kde4/libexec/kscreenlocker.real
then create a shell script with the correct name, e.g.:
vi /usr/lib/kde4/libexec/kscreenlocker
and fill it with e.g.
#---------------------------------
#!/bin/sh
# do stuff before locking
dbus-send --type=method_call --dest=org.kde.kopete /Kopete
org.kde.Kopete.setOnlineStatus :Away :"I'm Away"
/usr/lib/kde4/libexec/kscreenlocker.real $@
# Do stuff after unlocking...
dbus-send --type=method_call --dest=org.kde.kopete /Kopete
org.kde.Kopete.setOnlineStatus :Online
# ---------------------------
and make this script executable.
Please note that I did not try that myself yet, but I'm rather sure, that
should do the trick. Please note that this trick would set you online every
time you unlock the screen, so if you go n/a manually, lock and then unlock
again, you will magically be online again. one perhaps could make this script
better and check status first, and set to away only when online, and later on
set online just if status has been altered above. But that's too much for my 10
minutes now.
Best,
Daniel
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the kopete-bugs
mailing list