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):
openSUSE Build Service is sponsored by