Skip to content
Snippets Groups Projects
Commit 17dc3e37 authored by Balló György's avatar Balló György :flag_hu:
Browse files

Update to version 1.1.0

parent 11612d2a
No related branches found
Tags 1.1.0-1
No related merge requests found
......@@ -2,7 +2,7 @@
# Contributer: Sam Burgos <jsbm1089 at gmail dot com>
pkgname=blueberry
pkgver=1.0.9
pkgver=1.1.0
pkgrel=1
pkgdesc="Bluetooth configuration tool"
arch=('any')
......@@ -10,29 +10,11 @@ url="https://github.com/linuxmint/blueberry"
license=('GPL')
depends=('gnome-bluetooth' 'python2-gobject' 'rfkill')
install=$pkgname.install
source=($pkgname-$pkgver.tar.gz::https://github.com/linuxmint/blueberry/archive/$pkgver.tar.gz
fix-monitoring-settings.patch
detect-more-de.patch)
md5sums=('c5c84b09df2a8a4ffeff85d4eeb28fb7'
'3824201f2b939bea0e522140c292d56e'
'71977387ffb8bfa1415fa10353c821b6')
source=($pkgname-$pkgver.tar.gz::https://github.com/linuxmint/blueberry/archive/$pkgver.tar.gz)
md5sums=('312e8dc6e89da04bca73ba0d340956a2')
prepare() {
cd $pkgname-$pkgver
# Fix monitoring settings
patch -Np1 -i ../fix-monitoring-settings.patch
# Detect more DEs via XDG_CURRENT_DESKTOP
patch -Np1 -i ../detect-more-de.patch
# Hide in GNOME, KDE and Unity
for i in etc/xdg/autostart/blueberry-tray.desktop usr/share/applications/blueberry.desktop
do echo "NotShowIn=GNOME;KDE;Unity;" >> $i; done
# Make blueberry-tray executable
chmod +x usr/bin/blueberry-tray
# Python2 fix
sed -i 's@^#!.*python$@#!/usr/bin/python2@' usr/bin/blueberry{,-tray}
}
......
From 96923856d28fab95151956fb6966ba3487e302ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gy=C3=B6rgy=20Ball=C3=B3?= <ballogyor@gmail.com>
Date: Sat, 4 Jul 2015 11:39:12 +0200
Subject: [PATCH] Detect more DEs via XDG_CURRENT_DESKTOP
And add support for LXDE.
---
usr/lib/blueberry/blueberry.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/usr/lib/blueberry/blueberry.py b/usr/lib/blueberry/blueberry.py
index f469f3b..722581f 100755
--- a/usr/lib/blueberry/blueberry.py
+++ b/usr/lib/blueberry/blueberry.py
@@ -30,12 +30,14 @@
CONF_TOOLS["sound"] = "pavucontrol"
else:
CONF_TOOLS["sound"] = "xfce4-mixer"
-elif "Muffin" in wm_info:
+elif "Muffin" in wm_info or xdg_current_desktop == "X-Cinnamon":
CONF_TOOLS = {"sound": "cinnamon-settings sound", "keyboard": "cinnamon-settings keyboard", "mouse": "cinnamon-settings mouse"}
-elif "Mutter" in wm_info:
+elif "Mutter" in wm_info or "GNOME" in xdg_current_desktop:
CONF_TOOLS = {"sound": "gnome-control-center sound", "keyboard": "gnome-control-center keyboard", "mouse": "gnome-control-center mouse"}
elif "Unity" in wm_info or xdg_current_desktop == "Unity":
CONF_TOOLS = {"sound": "unity-control-center sound", "keyboard": "unity-control-center keyboard", "mouse": "unity-control-center mouse"}
+elif xdg_current_desktop == "LXDE":
+ CONF_TOOLS = {"sound": "pavucontrol", "keyboard": "lxinput", "mouse": "lxinput"}
else:
print "Warning: DE could not be detected!"
CONF_TOOLS = {}
From 47437a088d4e7bc9406e0815384c519c9b92b4eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gy=C3=B6rgy=20Ball=C3=B3?= <ballogyor@gmail.com>
Date: Sat, 4 Jul 2015 13:36:25 +0200
Subject: [PATCH] Fix monitoring settings
We have to read settings once, otherwise changes are not detected. Simple reordering fix the problem.
---
usr/lib/blueberry/blueberry-tray.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/usr/lib/blueberry/blueberry-tray.py b/usr/lib/blueberry/blueberry-tray.py
index 29247ff..e7659e1 100755
--- a/usr/lib/blueberry/blueberry-tray.py
+++ b/usr/lib/blueberry/blueberry-tray.py
@@ -18,14 +18,13 @@ def __init__(self):
self.rfkill = rfkillMagic.Interface(self.update_icon_callback, debug)
self.settings = blueberrySettings.Settings()
+ self.settings.gsettings.connect("changed::tray-enabled", self.on_settings_changed_cb)
# If we have no adapter, or disabled tray, end early
if (not self.rfkill.have_adapter) or (not self.settings.get_tray_enabled()):
self.rfkill.terminate()
sys.exit(0)
- self.settings.gsettings.connect("changed::tray-enabled", self.on_settings_changed_cb)
-
self.client = GnomeBluetooth.Client()
self.model = self.client.get_model()
self.model.connect('row-changed', self.update_icon_callback)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment