summaryrefslogtreecommitdiff
path: root/pacman-update-indicator
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-update-indicator')
-rwxr-xr-xpacman-update-indicator/pacman-update-indicator3
1 files changed, 3 insertions, 0 deletions
diff --git a/pacman-update-indicator/pacman-update-indicator b/pacman-update-indicator/pacman-update-indicator
index 12f6f2c..e402e2c 100755
--- a/pacman-update-indicator/pacman-update-indicator
+++ b/pacman-update-indicator/pacman-update-indicator
@@ -17,6 +17,9 @@ get_terminal() {
}
notify() {
+ # Export environment variables in order for notify-send to understand which display and DBUS address to use
+ export DISPLAY=:0
+ export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
result=$(notify-send --action=install=Install --action=cancel=Abort "Pacman updates available" "The following updates available:\n\n$1\n\nWould you like to install them?")
if [[ "$result" == "install" ]]; then
return 0