#!/bin/sh

grep --silent "Exec" /usr/share/applications/gnome-screenshot.desktop | grep delay

if [ $? = 1 ]; then

  mv -f /usr/share/applications/gnome-screenshot.desktop /usr/share/applications/gnome-screenshot.desktop.old
  sed 's/Exec\=gnome-screenshot/Exec\=gnome-screenshot --interactive --delay 1/' /usr/share/applications/gnome-screenshot.desktop.old  > /usr/share/applications/gnome-screenshot.desktop
  chmod 644 /usr/share/applications/gnome-screenshot.desktop
  rm -f usr/share/applications/gnome-screenshot.desktop.old 

fi
