Avoid repeatedly altering desktop file

This commit is contained in:
Bob Mottram 2017-09-17 17:54:53 +01:00
parent 0f72006fd0
commit b5188d3392
1 changed files with 3 additions and 1 deletions

View File

@ -935,7 +935,9 @@ else
rm /home/$MY_USERNAME/Desktop/tox.desktop
fi
if [ -f /home/$MY_USERNAME/Desktop/social.desktop ]; then
sed -i 's|Name=.*|Name=Social (Offline)|g' /home/$MY_USERNAME/Desktop/social.desktop
if ! grep -q "Offline" /home/$MY_USERNAME/Desktop/social.desktop; then
sed -i 's|Name=.*|Name=Social (Offline)|g' /home/$MY_USERNAME/Desktop/social.desktop
fi
fi
pkill qtox
fi