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.
| 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. |
| 53 | wxString GetAppImagePath() |
| 54 | { |
| 55 | const char* env = getenv("APPIMAGE"); |
| 56 | return env ? wxString::FromUTF8(env) : wxString(); |
| 57 | } |
| 58 | |
| 59 | wxString GetAppDir() |
| 60 | { |
no test coverage detected