Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在每次激活 gnome-screensaver 时运行特定命令?
谢谢
在那里找到:http: //people.gnome.org/~mccann/gnome-screensaver/docs/gnome-screensaver.html#gs-intro
Gnome 屏幕保护程序有一个名为的 Dbus 信号:
ActiveChanged
在
org.gnome.ScreenSaver
然后打电话
获取活动()
如果它返回 true 你调用你的方法