Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:ARM
blueberry
blueberry-fix-rfkill-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File blueberry-fix-rfkill-path.patch of Package blueberry
--- a/usr/lib/blueberry/rfkillMagic.py +++ b/usr/lib/blueberry/rfkillMagic.py @@ -2,14 +2,20 @@ import thread import subprocess import os +import os.path import re from gi.repository import GLib -RFKILL_CHK = ["/usr/sbin/rfkill", "list", "bluetooth"] -RFKILL_BLOCK = ["/usr/sbin/rfkill", "block", "bluetooth"] -RFKILL_UNBLOCK = ["/usr/sbin/rfkill", "unblock", "bluetooth"] +if os.path.isfile("/usr/bin/rfkill"): + RFKILL_BINARY = "/usr/bin/rfkill" +else: + RFKILL_BINARY = "/usr/sbin/rfkill" -RFKILL_EVENT_MONITOR = ["/usr/lib/blueberry/safechild", "/usr/sbin/rfkill", "event"] +RFKILL_CHK = [RFKILL_BINARY, "list", "bluetooth"] +RFKILL_BLOCK = [RFKILL_BINARY, "block", "bluetooth"] +RFKILL_UNBLOCK = [RFKILL_BINARY, "unblock", "bluetooth"] + +RFKILL_EVENT_MONITOR = ["/usr/lib/blueberry/safechild", RFKILL_BINARY, "event"] class Interface: def __init__(self, output_callback, debug):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor