diff --git a/PKGBUILD b/PKGBUILD index ab78fbc68da5200824bc586e71f7d6ee8decf9df..3003db4fe8a7c3d5f411e1e2db8ad98ed48072d1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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} } diff --git a/detect-more-de.patch b/detect-more-de.patch deleted file mode 100644 index 36712d21daf2935af737427e2a3ab8ff871d447e..0000000000000000000000000000000000000000 --- a/detect-more-de.patch +++ /dev/null @@ -1,31 +0,0 @@ -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 = {} diff --git a/fix-monitoring-settings.patch b/fix-monitoring-settings.patch deleted file mode 100644 index e1b42bd49a47c637e259dd13cd5004f163a4c8fe..0000000000000000000000000000000000000000 --- a/fix-monitoring-settings.patch +++ /dev/null @@ -1,30 +0,0 @@ -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)