• Update Ubuntu Touch apps to 20.04 Focal Fossa

    Pinned
    9
    4 Votes
    9 Posts
    3k Views
    danfroD
    @kugiigi true. I wonder why I noted those lines a while ago.
  • 20.04 Focal

    Pinned
    9
    2 Votes
    9 Posts
    1k Views
    D
    @lakotaubp said in 20.04 Focal: @doniks Done :folded_hands:
  • Developer Documentation

    Pinned
    12
    8 Votes
    12 Posts
    5k Views
    mimecarM
    Good afternoon. Sorry for taking so long to fix it. The last few weeks I have been quite busy and I have not been able to dedicate time to projects. There was a problem with the DNS and it's fixed now. The link to the course should work fine.
  • full python clickable app prototype

    9
    1
    0 Votes
    9 Posts
    359 Views
    developerbaymanD
    i might be getting some where? [image: 1748335036787-pic.jpg]
  • app clickable nes emulator

    3
    2
    0 Votes
    3 Posts
    93 Views
    developerbaymanD
    @arubislander cool thanks yeah truthfully i dont know much about docker so yeah thats a big help
  • AntiVirus needed!

    4
    0 Votes
    4 Posts
    267 Views
    K
    @PiotrBujakowski If you dont enter suspicious links you dont need antivirus.Same aplies on android and windows.I dont use antivirus.
  • clickable permissions issue

    4
    0 Votes
    4 Posts
    232 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?
  • app mario maker clone

    4
    2
    0 Votes
    4 Posts
    85 Views
    developerbaymanD
    also maybe this isnt the app for that ...i have much more ....also lots of python usage so ill need to learn content hub more ...i know the docs but i like to talk about it
  • i need more information about clickable html permissions

    2
    0 Votes
    2 Posts
    53 Views
    developerbaymanD
    iv been looking for hours and i dont think i need contenthub? for just a html file /javascript??
  • Firefox from Snap crushed after run.

    3
    0 Votes
    3 Posts
    212 Views
    P
    I install Firefox from Snap. I run the application and after a few second is a window with crush information.
  • Clickable Dev on Debian struggle

    Moved Solved
    7
    0 Votes
    7 Posts
    202 Views
    C
    @ikoz Thank you much!
  • Get app name and hook at runtime

    2
    0 Votes
    2 Posts
    132 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.
  • not all distros are equal in the eyes of clickable

    1
    0 Votes
    1 Posts
    81 Views
    No one has replied
  • 20.04 Focal: uNav freezes with GPS enabled

    17
    1 Votes
    17 Posts
    1k Views
    CiberSheepC
    @kristatos said in 20.04 Focal: uNav freezes with GPS enabled: @CiberSheep @TheBird @zubozrout Can you please mention on which device these freezes happen to you? Currently I'm on a POCO (but I experienced freezes since Focal. On uNav With gps, wifi, mobile network all on Tap on the map Start navigation Cancel navigation Now UI is freezed Switch off GPS Switch on GPS GPS icon doesn't appear on the indicators bar If you open again uNav and tap on a location and try to navigate, UI will freeze until GPS fails to turn on and switches off. With this I mean, if you turn on GPS from the indicator, still doesn't appear on indicators bar but GPS switch is on. GPS fails. GPS switch turns off. uNav UI unfreezes.
  • I have a problem with clickable to compile for Noble.

    3
    1 Votes
    3 Posts
    139 Views
    Vlad NirkyV
    @lduboeuf Thanks for the answer Lionel. Well, i have made some tries but without success. Finally, i have remove the pip3 install of 8.3.1 and reinstall with snap and now it's working. There was something wrong with the blob fdc55cec6c2e
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Resurrection of Indicator Upower

    upower power indicator
    61
    3 Votes
    61 Posts
    5k Views
    paulcarrotyP
    @Eric-H said in Resurrection of Indicator Upower: I can see POWER_SUPPLY_CHARGE_TYPE=Fast in udev battery info, so it seems to be a fast charge. No, I got Fast with low-end 7W charger too. My guess it's POWER_SUPPLY_FASTCHARGE_MODE=1. My device has POWER_SUPPLY_HI_POWER. How much power can your charger deliver? POWER_SUPPLY_POWER_NOW=39764516 looks realistic for 45W. I also tried to find the Fast Charging voltage (9..12V) on BMS and failed, so you can try it too. Probably not being monitored by software. And all of this is very device-specific.
  • What's the best way to store a user password?

    14
    0 Votes
    14 Posts
    612 Views
    arubislanderA
    @adorsaz said in What's the best way to store a user password?: Although, IIRC Ubuntu Touch lets user use phone without password/pin code. Maybe this is the reason such service is not provided to app developpers ? Ubuntu desktop also allows passwordless login. So that in itself is not the reason there is no implementation of libsecret on UT. The real reason is probably simply that none was implemented as yet.
  • Aplications from Google Store.

    5
    0 Votes
    5 Posts
    241 Views
    stanwoodS
    @bamboy360 said in Aplications from Google Store.: UT's "guided" way of installing waydroid can let you access some GooglePlay apps via AuroraStore apk (a redistributor) without google services. In my experience however, this leads to some android apps needing those services, crashing and causing other problems with Waydroid. It's fiddly. If WayDroid is used without GAPP module, it's recommended to install the MicroG services (a fake Google services library). This will allow "most" apps that need Google services to run properly in WayDroid. The installation is simple and is described here: https://forums.ubports.com/topic/5907/open-ubuntu-touch-to-all-android-applications/115
  • Alarm rising sound

    2
    0 Votes
    2 Posts
    148 Views
    K
    @vily I don't think so. Probably something that should be implemented first in the system handling notification sound playback before the app.