Created
November 14, 2022 22:44
-
-
Save nathanielstenzel/4196b877dd1a3159cda69bec4e6d66eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Written by Nathaniel J Stenzel (https://github.com/nathanielstenzel) on November 14, 2022." | |
chmod +x $1 | |
./$1 --appimage-extract *.desktop | |
sed -i "s/Exec=.*/Exec=$1 %f/g" squashfs-root/*.desktop | |
mv squashfs-root/*.desktop /usr/share/applications | |
grep "Exec=" squashfs-root/*.desktop | |
rm squashfs-root -R | |
mv $1 /usr/local/bin | |
echo "Notice: The Exec line may need to be changed!" | |
echo "Look for the .desktop file that was just mentioned in /usr/share/applications." | |
echo 'You can go there and "sudo vi" that file and look for the Exec line.' | |
echo "I moved the AppImage file to /usr/local/bin." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment