Example #1
0
 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"))
Example #2
0
 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"))
Example #3
0
 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)
Example #4
0
 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"))
Example #5
0
 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)
Example #6
0
 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"))
Example #7
0
 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)
Example #8
0
 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"))