Bug 290998 - Plugin to set away presence when locking screen
Summary: Plugin to set away presence when locking screen
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: kded-module (show other bugs)
Version: git-latest
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-08 21:04 UTC by Martin Klapetek
Modified: 2013-05-04 09:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Klapetek 2012-01-08 21:04:02 UTC
If you lock your screen, your evidently not 'available' anymore. Plugin setting you away would be great (there's a signal for screenlocking).

Similarly when you watch a movie in full-screen, your presence could be 'busy'.
Comment 1 Lucas Betschart 2013-04-30 20:41:22 UTC
Hi,
I've implemented the UI and forked autoaway.cpp for a new lock screen away plugin.
But I don't know where I can get the screenlocking signal from, can you give me a hint? Thanks!
Comment 2 David Edmundson 2013-04-30 23:16:50 UTC
There's  a DBus signal:
org.freedesktop.ScreenSaver ScreenSaver org.freedesktop.ScreenSaver ActiveChanged
Comment 3 Martin Klapetek 2013-05-01 09:10:46 UTC
And to connect to that signal you want to use QDBusConnection::sessionBus().connect(..), we do that in telepathy-mpris.cpp.

Thanks btw :)
Comment 4 Martin Klapetek 2013-05-04 09:09:16 UTC
Git commit 68d2b69a99b1f0eddf256578273890f99fdc8a93 by Martin Klapetek, on behalf of Lucas Betschart.
Committed on 04/05/2013 at 11:07.
Pushed by mklapetek into branch 'master'.

Plugin to set status "Away" when screen gets locked

REVIEW: 110260
FIXED-IN: 0.7.0

M  +1    -0    CMakeLists.txt
M  +26   -0    config/telepathy-kded-config.cpp
M  +1    -0    config/telepathy-kded-config.h
M  +94   -2    config/telepathy-kded-config.ui
M  +10   -1    telepathy-module.cpp
M  +2    -0    telepathy-module.h

http://commits.kde.org/telepathy-kded-module/68d2b69a99b1f0eddf256578273890f99fdc8a93