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

Use an explicit path for sys.executable. #42

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Use an explicit path for sys.executable. #42

merged 1 commit into from
Apr 29, 2024

Conversation

freakboy3742
Copy link
Member

#41 introduced a change to explicitly set sys.executable to argv[0]. This appears to work on Python 3.9+, but fails on Python3.8 due to a difference in the implementation of platform.platform().

Inside a flatpak, the location of the app binary is completely predictable, so this modifies the app stub to use the explicit path, rather than implying one from sys.argv[0]

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@mhsmith
Copy link
Member

mhsmith commented Apr 29, 2024

I'll leave this review to @rmartin16, since he knows more about Flatpak internals.

@mhsmith mhsmith removed their request for review April 29, 2024 10:38
Copy link
Member

@rmartin16 rmartin16 left a comment

Choose a reason for hiding this comment

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

lgtm

@rmartin16 rmartin16 merged commit 52d4940 into main Apr 29, 2024
21 checks passed
@rmartin16 rmartin16 deleted the flatpak-exec branch April 29, 2024 17:19
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.

3 participants