From da3df1769e2aa4b1bb8cf0a1f8d8322b5033d832 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 30 Jan 2020 21:11:28 +0100 Subject: [PATCH] [modules/pacman] Fix update path for AUR installs If bumblebee-status is installed from an AUR package, using the relative binary path might not work, so fall back to the binary installed in /usr/share. fixes #536 --- bumblebee/modules/pacman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/pacman.py b/bumblebee/modules/pacman.py index 546c43a..6fe19a0 100644 --- a/bumblebee/modules/pacman.py +++ b/bumblebee/modules/pacman.py @@ -24,7 +24,10 @@ repos = ["core", "extra", "community", "multilib", "testing", "other"] def get_pacman_info(widget, path): try: - result = bumblebee.util.execute("{}/../../bin/pacman-updates".format(path)) + cmd = "{}/../../bin/pacman-updates".format(path) + if not os.path.exists(cmd): + cmd = "/usr/share/bumblebee-status/bin/pacman-update" + result = bumblebee.util.execute(cmd) except: pass