AppImageKit
AppImageKit copied to clipboard
[Feature request] Option to specify the output directory when using --appimage-extract
Hello,
I am wondering if there could be a way to specify the path in which AppImage files are extracted. For example, say I want to reuse a desktop entry from an AppImage :
$ ./example.AppImage --appimage-extract example.desktop -o ~/.local/share/applications/
Why not use something like this?
orig_cwd="$PWD"
cd ~/.local/share/applications/
"$orig_cwd"/example.AppImage --appimage-extract example.desktop
mv squashfs-root/example.desktop .
rmdir squashfs-root
Yes, it could kinda work.
So, if I understood, let's say we also want to retrieve the icon, we would do this ?
orig_cwd="$PWD"
cd ~/.local/share/applications/
"$orig_cwd"/example.AppImage --appimage-extract example.desktop
mv squashfs-root/example.desktop .
rmdir squashfs-root
cd ~/.local/share/icons/
"$orig_cwd"/example.AppImage --appimage-extract example.png
mv squashfs-root/example.png .
rmdir squashfs-root
Or, we could do this, but we should take in account that the AppImage is inside a folder on which the user has permissions ?
orig_cwd="$PWD"
"$orig_cwd"/example.AppImage --appimage-extract example.desktop
"$orig_cwd"/example.AppImage --appimage-extract example.png
mv squashfs-root/example.desktop ~/.local/share/applications/
mv squashfs-root/example.png ~/.local/share/icons/
rmdir squashfs-root