steam_client.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Steam-Supervisor-for-Linux 作者: prozacgod 项目源码 文件源码
def __init__(self):
    bus = dbus.SessionBus()
    service = bus.get_object('com.prozacville.steam_monitor', "/com/prozacville/steam_monitor")
    self._start = service.get_dbus_method('steam_start', 'com.prozacville.steam_monitor.Start')
    self._status = service.get_dbus_method('steam_status', 'com.prozacville.steam_monitor.Status')
    self._stop = service.get_dbus_method('steam_stop', 'com.prozacville.steam_monitor.Stop')
    self._kill = service.get_dbus_method('steam_kill', 'com.prozacville.steam_monitor.Kill')
    self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号