UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Get app name and hook at runtime

    Scheduled Pinned Locked Moved App Development
    1 Posts 1 Posters 71 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        Plarde
        last edited by

        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 (like appname.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 like APP_NAME or APP_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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post