Add KSandbox detection for AppImage
While AppImage is not really sandbox format, it is still sometime convenient to know whether the app runs inside an AppImage. This seems to be the best place for such a function.
See https://docs.appimage.org/packaging-guide/environment-variables.html