Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AppImage of a GtkApplication --help output #304

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

Open
caclark opened this issue Jan 1, 2025 · 2 comments
Open

AppImage of a GtkApplication --help output #304

caclark opened this issue Jan 1, 2025 · 2 comments

Comments

@caclark
Copy link

caclark commented Jan 1, 2025

I am using an AppImage from the Geeqie project, created using linuxdeploy and the gtk plugin:
https://github.com/BestImageViewer/geeqie

The project is a GtkApplication, which generates some of the --help out itself. When I call the AppImage with the option --help, the relevant part of the output shows:

Usage:
AppRun.wrapped [OPTION…] [path...]

I assume this is coming from argv[0].

Is it possible for the scripts to be changed to show the ultimate executable?

@TheAssassin
Copy link
Member

What does it say when you call the AppImage?

@caclark
Copy link
Author

caclark commented Jan 2, 2025

From $HOME/bin running:
./Geeqie-latest-x86_64.AppImage --help
or
./Geeqie-latest-x86_64-AppImage/squashfs-root/AppRun --help
gives the same output as above.


ls -l Geeqie-latest-x86_64-AppImage/squashfs-root/AppRun.wrapped
gives:
lrwxrwxrwx 1 cclark cclark 14 Jan 2 10:12 Geeqie-latest-x86_64-AppImage/squashfs-root/AppRun.wrapped -> usr/bin/geeqie


This hack works for me - in ./Geeqie-latest-x86_64-AppImage/squashfs-root/AppRun replacing
exec "$this_dir"/AppRun.wrapped "$@"
with
dest=$(readlink -f $this_dir/AppRun.wrapped)
exec "$dest" "$@"

gives the --help output
Usage:
geeqie [OPTION…] [path...]

mowgli pushed a commit to BestImageViewer/geeqie that referenced this issue Jan 10, 2025
Problems reported with linuxdeploy AppImages are:
linuxdeploy/linuxdeploy#303
linuxdeploy/linuxdeploy#304

This patch is a temporary workaround.
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