UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • U

      UT filemanager preview rotated picture orientation issue

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Support
      6
      0 Votes
      6 Posts
      248 Views
      arubislanderA
      @uwahl said in UT filemanager preview rotated picture orientation issue: Anything I could do? You could start by checking if there is already an issue opened in the File Manager issue tracker (link can be found in the Open Store listing of the app). If there already is an issue opened, you can check if there is additional info that can be added. If you can code (or are willing to learn) you could jump in and try to solve the issue and open an MR when you have.
    • C

      How to reverse UBT?

      Watching Ignoring Scheduled Pinned Locked Moved Solved Fairphone 3
      2
      0 Votes
      2 Posts
      143 Views
      C
      Okay, it can be closed, after installing another ADB Driver it worked
    • Sota4Ever_kS

      Samsung S20 FE UT (Ubuntu Touch) | Android 13

      Watching Ignoring Scheduled Pinned Locked Moved Porting
      36
      4 Votes
      36 Posts
      7k Views
      F
      @gn-lin s21 is a different phone, has a different SoC and not really related to this s20 fe effort
    • J

      6T Failed to boot after installing SIM card

      Watching Ignoring Scheduled Pinned Locked Moved Oneplus 6/6T
      2
      0 Votes
      2 Posts
      68 Views
      MrT10001M
      @James-T What you surmised is quite correct. To shutdown the OP6 and 6T you have to either leave it a while, or use the key combo to het to fastboot mode and power off from there.
    • IanI

      Will Vollaphone X move to Noble and will it get VOLTE?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Volla Phone X
      3
      0 Votes
      3 Posts
      124 Views
      K
      AFAIK it will move to noble, but it won't get VoLTE (like the Vollaphone). First it's nice to know that these devices are kept alive with the move to noble, but on the other hand it's a pity that they won't get VoLTE (even if they are capable of that under VollaOS). So they will be up to date from the software-side, but can't do a simple phone call or sending a message/SMS because of the 2G shutdown
    • K

      Cannot run .exe with winebox

      Watching Ignoring Scheduled Pinned Locked Moved Oneplus Nord N100
      2
      0 Votes
      2 Posts
      66 Views
      K
      @Kamil [image: 1746179214447-screenshot20250502_114518137.png]
    • P

      Too brightness screen in Volla Tablet.

      Watching Ignoring Scheduled Pinned Locked Moved Volla
      2
      0 Votes
      2 Posts
      139 Views
      MoemM
      @PiotrBujakowski I think you mean Volla Tablet? I'm moving your post to the Volla section.
    • Y

      Where to download Qualcomm usb drivers for Windows 10?

      Watching Ignoring Scheduled Pinned Locked Moved Oneplus Nord N10
      30
      0 Votes
      30 Posts
      3k Views
      *
      To download Qualcomm USB Drivers for Windows 10, you can visit the following page: Steps to Download and Install: Visit the link: Go to gsmxblog.com/download-qualcomm-usb-driver. Scroll down to find the download section for the Qualcomm USB Driver. Click on the download button or link provided on the page. Once downloaded, extract the ZIP file using WinRAR or any extraction tool. Open the extracted folder and run the setup file to install the driver on your Windows 10 PC. Follow the on-screen instructions to complete the installation.
    • UBportsNewsU

      Ubuntu Touch Q&A 166 Saturday 31st May 19:00 UTC

      Watching Ignoring Scheduled Pinned until 6/1/25, 12:17 PM Locked Moved News
      1
      1 Votes
      1 Posts
      53 Views
      No one has replied
    • UBportsNewsU

      Ubuntu Touch Q&A 166 Call for questions

      Watching Ignoring Scheduled Pinned until 6/1/25, 12:09 PM Locked Moved News
      1
      0 Votes
      1 Posts
      47 Views
      No one has replied
    • UBportsNewsU

      Ubuntu Touch 20.04 OTA-9 Call For Testing

      Watching Ignoring Scheduled Pinned until 6/4/25, 11:59 AM Locked Moved News
      1
      1 Votes
      1 Posts
      55 Views
      No one has replied
    • L

      Phone and Tablet Models for ubuntu touch

      Watching Ignoring Scheduled Pinned Locked Moved Design
      25
      1
      10 Votes
      25 Posts
      10k Views
      L
      Hi, The Brax 3 "Artwork" model has been added to the gitlab project ... [image: 1748290593621-c4efc15c-cb27-45f6-8972-f2f9cd192d87-image.png] As always : free to use for "marketing purpose" / "spread the word" posts or videos
    • L

      clickable permissions issue

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      4
      0 Votes
      4 Posts
      225 Views
      developerbaymanD
      kinda different but not but in python would say the dependencies in a requirements.txt file be listed (obviously) but how would i list them like the requirements.txt? or would i need to list them like im installing them also what if its a pip only package and not something through say apt?
    • P

      Get app name and hook at runtime

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      2
      0 Votes
      2 Posts
      129 Views
      developerbaymanD
      @Plarde Yes, it is possible — though not entirely straightforward — to infer some runtime information like the app's name and the hook that launched it on Ubuntu Touch, particularly if the app is deployed as a click package. Here’s a breakdown of your goals and possible solutions: Goal: Get the App ID or Name from Manifest In Ubuntu Touch click packages, metadata is defined in a manifest.json file, which contains fields like: { "name": "appname.yourname", "version": "1.0.0", "framework": "ubuntu-sdk-20.04", ... } How to get this at runtime? At runtime, this data isn’t directly exposed via traditional environment variables like APP_NAME. However: Environment Variables Available at Runtime: The AppArmor profile and the Ubuntu Touch application launch mechanism set a number of environment variables, including: APP_ID: Often the full app name like appname.yourname APP_PATH: The full installation path to the app APP_BIN: The binary or hook name You can access these using C/C++/SDL via getenv("APP_ID"), etc. Goal: Get the Hook Name (i.e., the launcher binary name) Click packages specify "hooks" (executables, wrappers, or scripts) in the manifest.json under "hooks": "hooks": { "myhook": { "apparmor": "myhook.apparmor", "desktop": "myhook.desktop" } } How to get the hook at runtime? There’s no standard variable like APP_HOOK, but you can infer it from: argv[0] or /proc/self/exe: #include <unistd.h> #include <limits.h> char path[PATH_MAX]; ssize_t len = readlink("/proc/self/exe", path, sizeof(path)-1); if (len != -1) { path[len] = '\0'; printf("Executable Path: %s\n", path); } Then extract the final component to get the executable name — likely the hook. Summary of Techniques What You Want How to Get It App ID (from manifest) getenv("APP_ID") or getenv("APP_NAME") (test both) App Install Path getenv("APP_PATH") Executable Name / Hook Use argv[0] or resolve /proc/self/exe Manifest Contents Parse /opt/click.ubuntu.com/<appid>/manifest.json manually Bonus: Parsing the Manifest Programmatically If you want full manifest access: #include <stdio.h> #include <stdlib.h> #include <json-c/json.h> void print_manifest_field(const char* field) { const char* appid = getenv("APP_ID"); if (!appid) return; char manifest_path[512]; snprintf(manifest_path, sizeof(manifest_path), "/opt/click.ubuntu.com/%s/current/manifest.json", appid); FILE* file = fopen(manifest_path, "r"); if (!file) return; struct json_object *parsed_json; parsed_json = json_object_from_file(manifest_path); if (parsed_json) { struct json_object *value; if (json_object_object_get_ex(parsed_json, field, &value)) { printf("%s: %s\n", field, json_object_get_string(value)); } json_object_put(parsed_json); } fclose(file); } ️ Caveats These variables are set by the Ubuntu Touch application launcher, so they only exist in the app context. Hook names are not exported as a separate variable unless the launcher sets one explicitly. SDL3 libraries should allow injection or configuration of these values from the hosting application (e.g., via init). Final Advice for SDL3 Porting Since SDL3 is a library and shouldn't hardcode values: Consider requiring the host app to pass APP_ID and HOOK_NAME to SDL3 during initialization. You could fallback to the environment and /proc/self/exe as a best-effort fallback. Let me know if you want a ready-made SDL3-compatible utility wrapper function for this.
    • developerbaymanD

      not all distros are equal in the eyes of clickable

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      1
      0 Votes
      1 Posts
      78 Views
      No one has replied
    • E

      Lomiri

      Watching Ignoring Scheduled Pinned Locked Moved General
      1
      0 Votes
      1 Posts
      101 Views
      No one has replied
    • UBportsNewsU

      Today is Q&A Day

      Watching Ignoring Scheduled Pinned Locked Moved News
      1
      0 Votes
      1 Posts
      165 Views
      No one has replied
    • UBportsNewsU

      Ubuntu Touch Q&A 165 Saturday 17th May 19:00 UTC

      Watching Ignoring Scheduled Pinned Locked Moved News
      1
      1 Votes
      1 Posts
      171 Views
      No one has replied
    • redmiguy3R

      Error while building halium-boot for Xiaomi Redmi 3(ido)

      Watching Ignoring Scheduled Pinned Locked Moved Porting porting xiaomi ubuntu touch
      2
      0 Votes
      2 Posts
      194 Views
      L
      @redmiguy3 the error you're facing has a simple fix listed here
    • S

      Wireless External monitor

      Watching Ignoring Scheduled Pinned Locked Moved Oneplus 3/3T
      1
      0 Votes
      1 Posts
      67 Views
      No one has replied