aboutsummaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-15 16:12:42 +0000
committerTarmac <>2013-10-15 16:12:42 +0000
commit08f4099365f311c4f94ce348902382987adc8f56 (patch)
treefe4e36dd816d0a4a1977132b9ac14cb26b3594fc /src/main.vala
parent5fb78027ee730e151d8307623ed0ffcfbac024f5 (diff)
parent73cc5b06408e95c0401cb3cd3c2249f9376f2606 (diff)
downloadayatana-indicator-bluetooth-08f4099365f311c4f94ce348902382987adc8f56.tar.gz
ayatana-indicator-bluetooth-08f4099365f311c4f94ce348902382987adc8f56.tar.bz2
ayatana-indicator-bluetooth-08f4099365f311c4f94ce348902382987adc8f56.zip
When the user chooses to toggle bluetooth on or off, if /dev/rfkill isn't available, fall back to toggling org.bluez.Adapter's Powered property. Fixes: https://bugs.launchpad.net/bugs/1230275, https://bugs.launchpad.net/bugs/1236249.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/main.vala')
-rw-r--r--src/main.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.vala b/src/main.vala
index caee3b3..828a96b 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -26,7 +26,7 @@ public static int main (string[] args)
Intl.textdomain (Config.GETTEXT_PACKAGE);
// create the backend
- var bluetooth = new Bluez (new RfKillSwitch ());
+ var bluetooth = new Bluez (null);
// start the service
var service = new Service (bluetooth);