UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. developerbayman
    3. Posts
    Online
    • Profile
    • Following 1
    • Followers 3
    • Topics 68
    • Posts 520
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Custom builder for a library

      i know this is old but i think its cool when it does that lol ...shows me its paying attention ....3 years+ in the making

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: Custom builder for a library

      so im reading and my AI : I would not use a chroot for this in a normal confined Click app.

      A real chroot() needs privilege/CAP_SYS_CHROOT, and even inside a chroot the process would still be under the same Ubuntu Touch AppArmor confinement. So it would not really solve the app-store/confined-app problem; it would mostly move the path problem somewhere harder to debug.

      For EFL/pEFL the better confined solution is to make the Click package look like the EFL install prefix at runtime:

      1. build/install EFL and pEFL into the Click package, for example under usr/
      2. ship the needed usr/share/elementary, usr/share/efreet, locale files, Perl module files, and .so files with the app
      3. start the app through a wrapper script that redirects EFL, XDG, Perl, and HOME paths into the app’s own confined directories

      Example launcher idea:

      #!/bin/sh
      set -eu
      
      APP_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
      APP_ID="hellopefl.maxperl"
      
      APP_HOME="/home/phablet/.local/share/${APP_ID}"
      APP_CACHE="/home/phablet/.cache/${APP_ID}"
      APP_CONFIG="/home/phablet/.config/${APP_ID}"
      
      mkdir -p "$APP_HOME" "$APP_CACHE" "$APP_CONFIG"
      mkdir -p "$APP_HOME/.cache/efreet"
      mkdir -p "$APP_HOME/.elementary/config"
      
      export HOME="$APP_HOME"
      export XDG_DATA_HOME="$APP_HOME/.local/share"
      export XDG_CACHE_HOME="$APP_CACHE"
      export XDG_CONFIG_HOME="$APP_CONFIG"
      export XDG_DATA_DIRS="$APP_DIR/usr/share:/usr/local/share:/usr/share"
      
      export ELM_PREFIX="$APP_DIR/usr"
      export ELM_BIN_DIR="$APP_DIR/usr/bin"
      export ELM_LIB_DIR="$APP_DIR/usr/lib/aarch64-linux-gnu"
      export ELM_DATA_DIR="$APP_DIR/usr/share/elementary"
      export ELM_LOCALE_DIR="$APP_DIR/usr/share/locale"
      
      export LD_LIBRARY_PATH="$APP_DIR/usr/lib/aarch64-linux-gnu:$APP_DIR/lib/aarch64-linux-gnu:${LD_LIBRARY_PATH:-}"
      export PERL5LIB="$APP_DIR/usr/lib/aarch64-linux-gnu/perl5:$APP_DIR/usr/share/perl5:${PERL5LIB:-}"
      
      exec "$APP_DIR/usr/bin/hellopefl" "$@"
      

      The important bit is that /usr/share/elementary should become $APP_DIR/usr/share/elementary inside the Click package, and EFL should be told about that prefix with the ELM_* variables instead of trying to read/write the real device /usr or /home/phablet.

      For Clickable, the rough shape would be:

      builder: cmake
      framework: ubuntu-touch-24.04-1.x
      
      dependencies_host:
        - perl
        - make
        - pkg-config
      
      dependencies_target:
        - libefl-all-dev
      
      libraries:
        pEFL:
          builder: custom
          src_dir: libs/pEFL
          build:
            - cd "$SRC_DIR" && perl Makefile.PL INSTALL_BASE="$INSTALL_DIR/usr"
            - cd "$SRC_DIR" && make
            - cd "$SRC_DIR" && make install
      
      install_data:
        "${PEFL_LIB_INSTALL_DIR}/usr": "usr"
      
      install_root_data:
        - run-pefl.sh
      
      install_lib:
        - "libefl.so*"
        - "libelementary.so*"
        - "libeina.so*"
        - "libevas.so*"
        - "libecore*.so*"
        - "libedje.so*"
        - "libefreet.so*"
      

      That example will need the exact library list adjusted after running ldd on the final binary/module, but the direction is: bundle the runtime prefix, then point EFL and Perl at the bundled prefix.

      read_path/write_path can help for specific paths, but I would treat that as a last resort. A confined app should work from its own packaged resources and its own .config, .cache, and .local/share directories.

      A helper app/broker such as Workspace could be useful during development for copying logs, staging files, checking AppArmor denials, or preparing the bundle, but I would not make the final pEFL app depend on an unconfined/root broker just to launch. That would be useful for side-loaded developer/admin workflows, not the clean confined Click solution.

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing-workspace enabled}~UT_office

      i think the last thing im gonna drop is "game native" im trying to port the latest version to UT as well so we can play our steam games ....after that i think ill start at the beginning and start refining everything starting with python deploy ....then openstore ....hopefully i gain some feedback by then so i can get all the bugs ....my problem is time ....i get something running i swipe around a little ....i dont have a use or need at the moment so im like "seems to work" then see something shiny over there and go do that .....if i get game native to work well people will prob want to starst porting UT to much higher end devices ....i dont think my phone has the power .....but i wanna play helldivers 2 on my phone someday

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing-workspace enabled}~UT_office

      **super alpha im sure bugs

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy iv updated this and should actually work now please let me know next ut office im like 70% there

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy i have not because i dont own a printer ....so your my guy if you dont mind .....as of writing this i have to build and test some so im gonna try to post something ....also in workspace i discovered mad flaws so i need to do some repairs before i think itll actually work ....as of right now i dont think workspace really works also for that im gonna really need the broader experience from the community ...some of the features i added in i cant even test printing for example ....i do have a 3d printer though

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy honestly i think its this ....and honestly your the the most interested person so far i think?? ...i was hoping as i was cranking all these app out people would test and report back all those things for all the apps so i could focus on fixing the list of broken things ...this isnt the case it seems so i have to basically do everything so its taking a bit ....im not mad or anything i just was expecting a slightly different scenario ...thats prob my bad for having pre-expectations

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing}~UT_devstudio

      heads up i forgot to re-enable some of the build chains during debugging so this is broken till i post the update

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: Use phone as modem with gnome-calls

      you need to go to settings and set your usb to tethering ....there is your internet connection it should just work when you plug it in and connect ...if im understanding you correctly?

      posted in Support
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy 😂

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy yes there is a UT version in progress

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      @oldbutndy in theory .....ok fine ill post what i have but its severely broken .....lol i was asked if im gonna finish all these ...like ppsspp port i consider finished despite the focus bug that will likely be the first one i post on openstore ....everything else is mostly kinda bugged ....maybe ill stop producing and start fine tuning? ......tbh im kinda adhd spaz and i just roll with what feels good at the moment ...its 3:2 now i got to go to work at 7 so ill try to post something on this before that ...possibly when i get back ....you see as of right now ....menu's are not working properly and everything is wonk .....the writer might actually be the only thing that works

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      yeah i see a flaw already in some of the code also i have only ran it on my desktop so it will not be tested even a little compared to others ....i think im about to lock in on whats up and pause on some of the other stuff i have planed ....get this all fixed up and then maybe start open store submissions later

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      to be fair i havent really got to test this like i want

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing special}~workspace~drop in replacment for contenthub

      developerbayman said:

      Supports older Ubuntu.Content flows
      Supports newer Lomiri.Content flows

      whoever made this change ....shame on you you ....i say this light hearted ....but alot of headaches for me with this

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: "Are we mainstream-ready yet?"

      i just posted a testing version in app development ....expect bugs ....i expect feedback ....i add the missing features mentioned as well

      posted in Marketing Incubator
      developerbaymanD
      developerbayman
    • RE: [app]{public testing-workspace enabled}~UT_office

      @oldbutndy yes that is the desktop version .....i desperately want to give you something to test but the ut version is still just too broken im going for EXACTLY the same thing in both desktop and UT versions ....that is not easy as you would think ...i promise soon i will have something for you ...im actually excited your excited

      posted in App Development
      developerbaymanD
      developerbayman
    • [app]{public testing special}~workspace~drop in replacment for contenthub

      Workspace for Ubuntu Touch
      System control hub for Ubuntu Touch
      App-to-app bridge for sharing files, links, tasks, and actions
      Content Hub replacement and compatibility layer
      Supports older Ubuntu.Content flows
      Supports newer Lomiri.Content flows
      Handles source, destination, and share transfers
      Local REST API for developers
      D-Bus IPC support for confined apps
      XDG link and file handling
      Auto-fill API support
      Background task delegation
      Task queue and status tracking
      Bridge callbacks for app events
      Local service registry
      File broker for passing files between apps
      Notification bridge
      CUPS printer support
      Printer listing
      Add IPP / IPP Everywhere printers
      Set default printer
      Print local files
      View print jobs
      Cancel print jobs
      Root/admin mode for system-level features
      Root-mode install and uninstall scripts
      Systemd daemon support
      Localhost-only API by default
      API token helper
      Developer/API tab with copy-and-paste examples
      Built-in API usage instructions
      QML client example
      JavaScript client example
      Python client example
      Bash client example
      C++ client example
      Command-line control tool
      System health check tools
      API test scripts
      CUPS test scripts
      Logs view
      Settings panel
      Status dashboard
      Phone-friendly layout
      Desktop/convergence layout
      Scrollable mobile navigation
      Large touch-friendly menu
      Transparent glass tiles
      Animated background
      Ubuntu Touch dark/orange/purple theme
      Designed for advanced Ubuntu Touch users, developers, and port builders
      Built as an unconfined/admin-oriented utility app
      Intended to fill missing Ubuntu Touch system, sharing, printing, and background-task features

      9b5f0380-afc8-4273-ba19-0e3ac6b7129e-image.jpeg

      update i thought it needed more user feedback when activating stuff ....if you tried this try it again old one v1.15 to v1.17 ....everything should actually work now because the internal diagnostics say so

      source:
      https://drive.google.com/file/d/1aescDICpCDdSLExGpRApQtLPIqxwAVl3/view?usp=sharing

      click:
      https://drive.google.com/file/d/1Gbn53vDKmmggsiDluUGMVSqqtsql_nKX/view?usp=sharing

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{special}~UT_webserver alpha full stack LAMP on UT testing needed

      this one i really could use some feedback on as this is one of my favorite projects as well as a staple tool that is intended to make UT more useful ....there are many bugs i know ....i cant figure them out and neither can AI .... until i get more information im basically over here eating my own tail on this project

      posted in App Development
      developerbaymanD
      developerbayman
    • RE: [app]{public testing-workspace enabled}~UT_office

      update ....clickable is giving me the business ...im having cross compilation/translation issues between python libs and clickable qml does not like some things yet or has a equivalent component to get the same results also trying to do it without importing the entire pyqt6 library ....but its moving along

      posted in App Development
      developerbaymanD
      developerbayman