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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue