开发者

gnome: how to execute commands upon screensaver activation?

开发者 https://www.devze.com 2023-01-25 10:50 出处:网络
is there a way to run a specific command every time gnome-scree开发者_如何学JAVAnsaver is activated?

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

精彩评论

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