MCPcopy Create free account
hub / github.com/amule-project/amule / GetAppImagePath

Function GetAppImagePath

src/AppImageIntegration.cpp:53–57  ·  view source on GitHub ↗

AppImage's AppRun exports both env vars: APPIMAGE = the original .AppImage path the user invoked; APPDIR = the squashfs mount point. We need both — APPIMAGE for the rewritten Exec= line so launcher-clicks invoke the image at its real on-disk path, APPDIR to find the bundled .desktop and icons.

Source from the content-addressed store, hash-verified

51// APPIMAGE for the rewritten Exec= line so launcher-clicks invoke the image
52// at its real on-disk path, APPDIR to find the bundled .desktop and icons.
53wxString GetAppImagePath()
54{
55 const char* env = getenv("APPIMAGE");
56 return env ? wxString::FromUTF8(env) : wxString();
57}
58
59wxString GetAppDir()
60{

Callers 2

ShouldPromptFunction · 0.85
PromptAndInstallFunction · 0.85

Calls 1

wxStringClass · 0.70

Tested by

no test coverage detected