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

appimage: get full path before changing to assets dir #11552

Merged
merged 1 commit into from Mar 15, 2024

Conversation

pazos
Copy link
Member

@pazos pazos commented Mar 14, 2024

Like in https://github.com/koreader/koreader/blob/master/platform/debian/koreader.sh

If one and only one argument is passed and the argument is a path that exists on the filesystem get its absolute path and pass it to lua, because assets dir != pwd and it is impossible to resolve relative paths from there.

Needs to be improved, here on in the future, to handle short options. The most effective way would be to pass pwd as a parameter and let the frontend to join pwd and path. So the frontend takes care of everything :)

Feedback welcome.

Closes #11518


This change is Reviewable

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

Any difference not explicitly related to AppImage is probably unintentional.

@Frenzie Frenzie added this to the 2024.04 milestone Mar 15, 2024
@pazos
Copy link
Member Author

pazos commented Mar 15, 2024

Any difference not explicitly related to AppImage is probably unintentional.

My bad. The appimage predates the debian build and I didn't think about this change back then.

@pazos pazos merged commit 3638adc into koreader:master Mar 15, 2024
2 of 3 checks passed
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.

appimage: relative paths don't work, and if attempted max out a CPU core indefinitely
2 participants