Skip to content

Fix TARGET_APPIMAGE issues #128

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enzo1982
Copy link

I discovered two issues with TARGET_APPIMAGE while working on #126:

  • --appimage-help is not working when TARGET_APPIMAGE is used
  • --appimage-portable-* is not working when TARGET_APPIMAGE is used

Both are due to readlink being used in different places without checking that appimage_path is a link.

This PR fixes this by moving the code to get the full AppImage path up and adding a check to see whether appimage_path is a link.

- Fix --appimage-help not working when TARGET_APPIMAGE is used
- Fix --appimage-portable-* not working when TARGET_APPIMAGE is used
Copy link
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you want to use readlink at all? You can also open a symlink.

@enzo1982
Copy link
Author

Why would you want to use readlink at all? You can also open a symlink.

--appimage-help and --appimage-portable-* need to know the AppImage name in order to print it/create a folder with that name. appimage_path usually is /proc/self/exe, so that link needs to be resolved.

@TheAssassin
Copy link
Member

TheAssassin commented Jul 1, 2025

I see, I thought that was likely already handled. Mind to add comments in the source code with your motivation to avoid people from introducing regressions?

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

Successfully merging this pull request may close these issues.

2 participants