-
-
Notifications
You must be signed in to change notification settings - Fork 224
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 AppImage path for hash when running as AppImage. #139
Use AppImage path for hash when running as AppImage. #139
Conversation
When an application is launched as AppImage, each instance is launched from its own FUSE-mounted filesystem, so each instance has its own executable path. The AppImage runtime sets the environment variable APPIMAGE to the absolute path to the .AppImage file, so we can use the content of this variable instead of QApplication::applicationFilePath() when set. Closes itay-grudev#77, itay-grudev#137
Co-authored-by: Hennadii Chernyshchyk <[email protected]>
Co-authored-by: Hennadii Chernyshchyk <[email protected]>
Should we check this variable only on Linux? Maybe use |
@Shatur I was also thinking whether we should append |
Sounds good to me! |
On second thought I'm not sure about adding application path to the end :) |
@Shatur I added the |
Co-authored-by: Hennadii Chernyshchyk <[email protected]>
Awesome! Thanks @mklein-de! |
When an application is launched as AppImage, each instance is launched
from its own FUSE-mounted filesystem, so each instance has its own
executable path.
The AppImage runtime sets the environment variable APPIMAGE to the
absolute path to the .AppImage file, so we can use the content of this
variable instead of QApplication::applicationFilePath() when set.
Closes #77, #137