Avoid repeatedly altering desktop file
This commit is contained in:
parent
0f72006fd0
commit
b5188d3392
|
@ -935,7 +935,9 @@ else
|
||||||
rm /home/$MY_USERNAME/Desktop/tox.desktop
|
rm /home/$MY_USERNAME/Desktop/tox.desktop
|
||||||
fi
|
fi
|
||||||
if [ -f /home/$MY_USERNAME/Desktop/social.desktop ]; then
|
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
|
fi
|
||||||
pkill qtox
|
pkill qtox
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue