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

Add small CLI tools performing specific libappimage operations #96

Open
TheAssassin opened this issue Mar 19, 2019 · 1 comment
Open

Comments

@TheAssassin
Copy link
Member

Sometimes it might be beneficial to offer interfaces additional to an API. A very simple interface type is CLI. It's used excessively by shells but can be used from almost any programming language; for API usage, one has to use C/C++.

We should consider providing some small wrapper tools that perform specific tasks for use by tools or scripts which can't afford linking to libappimage:

  • appimage-register-in-system my.AppImage
  • appimage-unregister-in-system my.AppImage
  • appimage-extract-thumbnail my.AppImage > thumb.png
  • etc.

The binaries might be shipped in separate libappimage-bin packages, like most library provided tools are.

@darealshinji
Copy link

Here's a small tool that allows to use most of the API from command line:
https://gist.github.com/darealshinji/c126c37013b088e7d28e8d5ac7447fb8

Examples:

  • libappimage-bin register-in-system my.AppImage
  • libappimage-bin unregister-in-system my.AppImage
  • libappimage-bin extract-file-following-symlinks .DirIcon "$PWD/thumb.png"

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