def on_devices(self, menu_item): lockfile = get_lockfile('blueman-manager') pid = get_pid(lockfile) if lockfile and pid and is_running('blueman-manager', pid): os.kill(pid, signal.SIGTERM) else: launch("blueman-manager", None, False, "blueman", _("Device Manager"))
def on_devices(self, menu_item): lockfile = get_lockfile('blueman-manager') pid = get_pid(lockfile) if lockfile and pid and is_running('blueman-manager', pid): os.kill(pid, signal.SIGTERM) else: launch("blueman-manager", None, False, "blueman", _("Device Manager"))
def _on_plugins_changed(self, _plugins, _name): implementation = self._get_status_icon_implementation() if not self._implementation or self._implementation != implementation: self._implementation = implementation pid = get_pid(get_lockfile('blueman-tray')) if pid: kill(pid, 'blueman-tray') launch('blueman-tray', icon_name='blueman', sn=False)
def on_devices(self): lockfile = get_lockfile('blueman-manager') pid = get_pid(lockfile) if not lockfile or not kill(pid, 'blueman-manager'): launch("blueman-manager", None, False, "blueman", _("Device Manager"))
def _on_plugins_changed(self, _plugins, _name): implementation = self.GetStatusIconImplementation() if not self._implementation or self._implementation != implementation: self._implementation = implementation kill(get_pid(get_lockfile('blueman-tray')), 'blueman-tray') launch('blueman-tray', icon_name='blueman', sn=False)
def on_devices(self): lockfile = get_lockfile('blueman-manager') pid = get_pid(lockfile) if not lockfile or not kill(pid, 'blueman-manager'): launch("blueman-manager", None, False, "blueman", _("Device Manager"))
def _on_plugins_changed(self, _plugins, _name): implementation = self._get_status_icon_implementation() if not self._implementation or self._implementation != implementation: self._implementation = implementation kill(get_pid(get_lockfile('blueman-tray')), 'blueman-tray') launch('blueman-tray', icon_name='blueman', sn=False)
def on_devices(self): lockfile = get_lockfile('blueman-manager') pid = get_pid(lockfile) if not pid or not kill(pid, 'blueman-manager'): launch("blueman-manager", name=_("Device Manager"))