launch icon indicating copy to clipboard operation
launch copied to clipboard

Read desktop files inside AppImages

Open probonopd opened this issue 2 years ago • 2 comments

Remaining part from https://github.com/helloSystem/launch/issues/26#issuecomment-1660001926:

% chmod +x ~/Downloads/Telegram_Desktop-x86_64.AppImage 
% ~/Downloads/Telegram_Desktop-x86_64.AppImage --appimage-extract
% cat squashfs-root/telegram.desktop
(...)
MimeType=x-scheme-handler/tg;
(...)

So, when encountering an AppImage, then "the system" (I still need to decide which component) needs to place the link to ~/.local/share/launch/MIME/.../ based on the information in MimeType= in the .desktop file inside the AppImage. (This already happens for .desktop files which are not inside AppImages.)

Possibly we can use the new libsqsh library by @Gottox for this. It looks promising and is under a permissive license.

  • https://github.com/Gottox/libsqsh/issues/34

probonopd avatar Aug 02 '23 10:08 probonopd

In https://github.com/probonopd/Filer/ I have implemented AppImage squashfs reading using libsqsh; in the current architecture something like it would also need to be done in launch which populates and manages the launch "database".

probonopd avatar Aug 03 '23 18:08 probonopd

It should automatically detect all Appimages in the hard disk and display them on the list. It should allow people to choose the software to be executed by default from the folder, as shown in the figure. image

louies0623 avatar Aug 04 '23 09:08 louies0623