[FIX] On KDE: don't take the screenshot if the user already has spectacle active
This commit is contained in:
@@ -15,6 +15,10 @@ SCR_LAST=`ls -t $DIR/$DAY/*.png | head -n1`
|
||||
# do a screenshot
|
||||
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]
|
||||
then
|
||||
if pgrep -x spectacle > /dev/null; then
|
||||
echo "`date`: Spectacle is already running; skipping screenshot"
|
||||
exit 0
|
||||
fi
|
||||
spectacle -bn -o $SCR_NEW
|
||||
else
|
||||
import -window root $SCR_NEW
|
||||
|
||||
Reference in New Issue
Block a user