AppImageKit icon indicating copy to clipboard operation
AppImageKit copied to clipboard

[Feature request] Option to specify the output directory when using --appimage-extract

Open IamPhytan opened this issue 2 years ago • 2 comments

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/

IamPhytan avatar Sep 19 '22 22:09 IamPhytan

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

TheAssassin avatar Sep 19 '22 22:09 TheAssassin

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

IamPhytan avatar Sep 19 '22 23:09 IamPhytan