[FIX] On KDE: don't take the screenshot if the user already has spectacle active

This commit is contained in:
2026-03-12 18:55:23 +01:00
parent 49eb66641c
commit a1c7ac7902
+4
View File
@@ -15,6 +15,10 @@ SCR_LAST=`ls -t $DIR/$DAY/*.png | head -n1`
# do a screenshot # do a screenshot
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ] if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]
then then
if pgrep -x spectacle > /dev/null; then
echo "`date`: Spectacle is already running; skipping screenshot"
exit 0
fi
spectacle -bn -o $SCR_NEW spectacle -bn -o $SCR_NEW
else else
import -window root $SCR_NEW import -window root $SCR_NEW