From 00d0f43ab2a135b306628cd4dc8167fd7d9f5dbc Mon Sep 17 00:00:00 2001 From: DorGind Date: Sat, 16 Mar 2024 01:12:29 +0100 Subject: [PATCH] [TASK] make tmp file user specific --- Scripts/lollypop-volumne-ctrl.sh | 2 +- Scripts/notifyVolumn.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/lollypop-volumne-ctrl.sh b/Scripts/lollypop-volumne-ctrl.sh index a5c3864..9d8dce7 100644 --- a/Scripts/lollypop-volumne-ctrl.sh +++ b/Scripts/lollypop-volumne-ctrl.sh @@ -1,7 +1,7 @@ #!/bin/bash expireTimeNotifyOSD=3000 currentId=2 -tmpFile=/tmp/currentLollypopVolumnNotifyId +tmpFile=/tmp/currentLollypopVolumnNotifyId$(whoami) currentVolume=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.Lollypop /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Volume' | grep -Eo '[+-]?[0-9]+([.][0-9]+)?' | tail -n 1) operator=$1 diff --git a/Scripts/notifyVolumn.sh b/Scripts/notifyVolumn.sh index bd33fd9..78af870 100755 --- a/Scripts/notifyVolumn.sh +++ b/Scripts/notifyVolumn.sh @@ -8,7 +8,7 @@ expireTimeNotifyOSD=3000 currentId=1 -tmpFile=/tmp/currentVolumnNotifyId +tmpFile=/tmp/currentVolumnNotifyId$(whoami) # gets the current notify id from our tmp file if [ -s $tmpFile ] then