Closed GSchuemann closed 4 years ago
You are right. But as the file is created in the "source directory" first, I think it would be OK to always create it (doesn't take too much time to do this).
Fixed in https://github.com/M-Reimer/leagueoflegends-linux/commit/5a4392614d6ee5b5495ce261e8bf4a93c1b610cb Probably we don't need the information output in front of the creating block but I think the whole output should be reconsidered at some time anyway. The whole script could be a bit more "silent".
Looking at the code, the .desktop file is only created when the user says y to creating a menu shortcut. If he said no and then yes to the desktop shortcut nothing happens, since no .desktop file was created that could be copied. An easy way of fixing this would be to use a function when creating the desktop file. Something like this: `create_leaguedesktop () { if [ -f leagueoflegends.desktop ]; then echo "" echo "Creating League of Legends desktop shortcut." echo "" else echo "" echo "Creating League of Legends application menu shortcut." echo ""
fi`. And then calling the function in both places should work.
EDIT: Looks like Github messes the formating up, sorry