Get app name and hook at runtime
-
Is it possible, when developing a non-Qt app, to obtain some information about the current app, such as the "name" as written in
manifest.json
(likeappname.yourname
), as well as the name of the hook that launched the executable? (Excluding hardcoding them in the executable, of course)I'm thinking something like environment variables. I've seen variables like
APP_ID
which seem to be derived from the app name and the hook, but I haven't seen anything likeAPP_NAME
orAPP_HOOK
that correspond exactly to the fields I need.My situation is that I'm porting SDL3 to Ubuntu Touch, and the app name and hook are needed to perform certain operations on Ubuntu Touch. Since SDL3 is a library, it can't make some presumptions about the executable.