Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read desktop files inside AppImages #27

Open
probonopd opened this issue Aug 2, 2023 · 2 comments
Open

Read desktop files inside AppImages #27

probonopd opened this issue Aug 2, 2023 · 2 comments

Comments

@probonopd
Copy link
Member

probonopd commented Aug 2, 2023

Remaining part from #26 (comment):

% 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.

@probonopd
Copy link
Member Author

probonopd commented Aug 3, 2023

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".

@louies0623
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants