开发者

gnome: how to execute commands upon screensaver activation?

is there a way to run a specific command every time gnome-scree开发者_如何学JAVAnsaver is activated?

thanks


Found there : http://people.gnome.org/~mccann/gnome-screensaver/docs/gnome-screensaver.html#gs-intro

Gnome Screensaver has a Dbus Signal named :

ActiveChanged

in

org.gnome.ScreenSaver

then call

GetActive()

and if it returns true you call your method

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜