• tedit development and design discussion

    tedit editor app development features
    214
    5 Votes
    214 Posts
    92k Views
    D
    @danfro said in tedit development and design discussion: No, the link would only be clickable if you would wrap it in proper html tags. See here: https://www.w3schools.com/html/html_links.asp Ok, i tested and it works as you say.
  • Create bootable iso from UT device?

    2
    0 Votes
    2 Posts
    2k Views
    ikozI
    @RJDan I don't know about a gui, but dd is preinstalled in every linux system so you can try that. There is also the ISODrive UT app which could work for you, but it doesn't do exactly ehat you want.
  • venv installation

    5
    0 Votes
    5 Posts
    2k Views
    lduboeufL
    @chaospredictor said in venv installation: @lduboeuf I'm building some python web app with local server. I would like it to be deployed on Ubuntu touch. And now, I just tried to run it by installing required python frameworks. i don't know if it is possible to embed a custom python version within your click package, also running a web app server will probably need unrestricted access policy, will be hard to share it on open store later. But someone with better knowledge need to answer
  • The terminal APP give a read-only shell

    Moved
    3
    0 Votes
    3 Posts
    2k Views
    L
    Ok, that's clear
  • app clickable nes emulator

    7
    2
    0 Votes
    7 Posts
    3k Views
    developerbaymanD
    now i can get back to deving(i think) ....i had a idea for the emulator its needs tons of mapper support ...so instead of running down all the hundreds of mapper code ....it hit me ...i live in the future .....im going to develop a sort of on the fly mapper interpreter engine for total mapper support ....i think ....thats the idea anyway ....a "just in time mapper" ....a "JIM" so to speak!
  • 20.04 Focal: uNav freezes with GPS enabled

    28
    1 Votes
    28 Posts
    6k Views
    U
    @Talkless same here, when i need navigation, i use osmand+ unav and puremaps are not usable, issues with missing gps signal in app (but other apps in same time can show my location), crashing or freezing and after some application switching
  • full python clickable app prototype

    17
    1
    1 Votes
    17 Posts
    3k Views
    developerbaymanD
    @arubislander nice ill dive more in the documentation when i get some time but thank you this is good to know
  • Firefox from Snap crushed after run.

    9
    0 Votes
    9 Posts
    2k Views
    C
    @Lakotaubp Done! https://forums.ubports.com/topic/11060/uwolf-librewolf
  • App text and other objects extremely large or small in windowed mode

    6
    0 Votes
    6 Posts
    768 Views
    B
    @kugiigi When using QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); it looks the same on phone and TV. That's nice, but i think i will stick with units.gu(). I've tried it and, so far, it works nice. I saw there are problems, but that's not the fault of my app.
  • Aplications from Google Store.

    7
    -2 Votes
    7 Posts
    1k Views
    AppLeeA
    @developerbayman Yes but Waydroid leaks all the available information as if you were running android. If privacy is the main goal of using Ubuntu Touch, waydroid should be used carefully. Of course it won't sniff around to find your juicy pictures, but still your location and usage of the android apps will leak. Just like Meta cannot read your WhatsApp messages, but they're happy with "only" the metadata associated with such usage...
  • snap store alternative client

    1
    1
    0 Votes
    1 Posts
    238 Views
    No one has replied
  • angry birds dependancie woes

    1
    1
    0 Votes
    1 Posts
    173 Views
    No one has replied
  • i need more information about clickable html permissions

    3
    0 Votes
    3 Posts
    291 Views
    AppLeeA
    Hi @developerbayman You're perfectly right, no need for the content hub. I never tried an HTML app, but I'm pretty sure, this is the documentation you are looking for: https://docs.ubports.com/en/latest/appdev/guides/writeable-dirs.html Let us know how it went.
  • AntiVirus needed!

    4
    -1 Votes
    4 Posts
    595 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
    501 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
    373 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
  • Clickable Dev on Debian struggle

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

    2
    0 Votes
    2 Posts
    257 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
    170 Views
    No one has replied
  • I have a problem with clickable to compile for Noble.

    3
    1 Votes
    3 Posts
    348 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