fix desktop file
This commit is contained in:
parent
a20551529e
commit
3eabbde2fa
|
@ -75,12 +75,9 @@ case $selection in
|
||||||
wget https://raw.githubusercontent.com/Lightcord/LightcordLogos/master/lightcord/lightcord.svg;
|
wget https://raw.githubusercontent.com/Lightcord/LightcordLogos/master/lightcord/lightcord.svg;
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Moving $(pwd)/lightcord.svg file to /usr/share/pixmaps$(tput sgr0)\n";
|
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Moving $(pwd)/lightcord.svg file to /usr/share/pixmaps$(tput sgr0)\n";
|
||||||
mv lightcord.svg /usr/share/pixmaps;
|
mv lightcord.svg /usr/share/pixmaps;
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Downloading Lightcord.desktop file to $(pwd && tput sgr0)\n";
|
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Generating and moving Lightcord.desktop file to /usr/share/Lightcord.desktop$(tput sgr0)\n";
|
||||||
wget https://raw.githubusercontent.com/Lightcord/Lightcord/master/Lightcord.desktop;
|
rm -rf /usr/share/applications/Lightcord.desktop
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Moving $(pwd)/Lightcord.desktop file to /usr/share/applications$(tput sgr0)\n";
|
echo -e "[Desktop Entry]\nName=Lightcord\nComment[fr_FR]=Un client Discord simple et personalisable\nComment=A simple - customizable - Discord Client\nExec=/opt/Lightcord/lightcord\nIcon=lightcord\nTerminal=false\nType=Application\nCategories=Network;InstantMessaging;P2P;" >> /usr/share/applications/Lightcord.desktop
|
||||||
mv Lightcord.desktop /usr/share/applications;
|
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Giving /usr/share/Lightcord.desktop execute permissions$(tput sgr0)\n";
|
|
||||||
chmod +x /usr/share/applications/Lightcord.desktop;
|
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Cleaning up$(tput sgr0)\n";
|
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Cleaning up$(tput sgr0)\n";
|
||||||
rm -rf Lightcord.*;
|
rm -rf Lightcord.*;
|
||||||
rm -rf Lightcord;
|
rm -rf Lightcord;
|
||||||
|
@ -155,25 +152,26 @@ case $selection in
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
case $troubleshooting_selection in
|
# case $troubleshooting_selection in
|
||||||
1)
|
# 1)
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Modifying /usr/share/applications/Lightcord.desktop$(tput sgr0)\n";
|
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 7)Modifying /usr/share/applications/Lightcord.desktop$(tput sgr0)\n";
|
||||||
sed -i 's/Lightcord\/Lightcord/Lightcord\/lightcord/' /usr/share/applications/Lightcord.desktop > /dev/null 2>&1;
|
# sed -i 's/Lightcord\/Lightcord/Lightcord\/lightcord/' /usr/share/applications/Lightcord.desktop > /dev/null 2>&1;
|
||||||
sed -i 's/Lightcord\/Lightcord/Lightcord\/lightcord/' /home/*/.local/share/applications/Lightcord.desktop > /dev/null 2>&1;
|
# sed -i 's/Lightcord\/Lightcord/Lightcord\/lightcord/' /home/*/.local/share/applications/Lightcord.desktop > /dev/null 2>&1;
|
||||||
printf "[$(tput setaf 10 && tput blink)FINISH$(tput sgr0)] Done\n";
|
# printf "[$(tput setaf 10 && tput blink)FINISH$(tput sgr0)] Done\n";
|
||||||
;;
|
# ;;
|
||||||
|
#
|
||||||
2)
|
# 2)
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 15)Visit the official server for support: https://discord.gg/7eFff2A$(tput sgr0)\n";
|
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 15)Visit the official server for support: https://discord.gg/7eFff2A$(tput sgr0)\n";
|
||||||
;;
|
# ;;
|
||||||
|
#
|
||||||
*)
|
# *)
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting troubleshooting$(tput sgr0)\n";
|
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting troubleshooting$(tput sgr0)\n";
|
||||||
;;
|
# ;;
|
||||||
esac
|
# esac
|
||||||
;;
|
# ;;
|
||||||
|
#
|
||||||
*)
|
# *)
|
||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n";
|
# printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n";
|
||||||
;;
|
# ;;
|
||||||
esac
|
#esac
|
||||||
|
|
Loading…
Reference in New Issue