Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
blueberry
blueberry-fix-rfkill-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File blueberry-fix-rfkill-path.patch of Package blueberry
From 953ef86b38f590c5b95b4efc414c088e7bb200f7 Mon Sep 17 00:00:00 2001 From: "Maurizio Galli (MauG)" <maurizio.galli@gmail.com> Date: Fri, 19 Jul 2019 10:10:59 +0800 Subject: [PATCH] Rebased blueberry-fix-rfkill-path.patch --- usr/lib/blueberry/rfkillMagic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr/lib/blueberry/rfkillMagic.py b/usr/lib/blueberry/rfkillMagic.py index 6d54308..361f68e 100644 --- a/usr/lib/blueberry/rfkillMagic.py +++ b/usr/lib/blueberry/rfkillMagic.py @@ -1,9 +1,15 @@ import _thread as thread import subprocess +import os.path import re from gi.repository import GLib +if os.path.isfile("/usr/bin/rfkill"): + RFKILL_BINARY = "/usr/bin/rfkill" +else: + RFKILL_BINARY = "/usr/sbin/rfkill" + RFKILL_CHK = ["/usr/sbin/rfkill", "list", "bluetooth"] RFKILL_BLOCK = ["/usr/sbin/rfkill", "block", "bluetooth"] RFKILL_UNBLOCK = ["/usr/sbin/rfkill", "unblock", "bluetooth"]
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