• Run python script within confined app

    Unsolved App Development
    4
    0 Votes
    4 Posts
    347 Views
    arubislanderA

    @jerzecokno Use clickable to create an app skeleton by choosing the Python template.
    Then copy the content of the Main.qml file of the project I pointed you to. Create a public repository somewhere and then if you have any concrete questions on how to proceed, either ask them here or join our App Development Telegram channel for more interactive support.

  • QML camera feed is reversed

    App Development
    1
    0 Votes
    1 Posts
    324 Views
    No one has replied
  • 3 Votes
    5 Posts
    574 Views
    poVoqP

    Anyone got an idea why qtCreator complains about importing pyotherside as done in the tutorial:

    qml module does not contain information about components contained in plugins

    The program itself runs fine on my Kubuntu18.04 system, so it seems to be an qtCreator specific problem.

    Edit: hmm, seems to be a pyotherside 1.4 specific issue, but I guess not such a good idea to upgrade as UT is also still stuck on 1.4

  • 0 Votes
    6 Posts
    1k Views
    J

    Packaging a GTK app as an click package is possible, but I could only manage to do so by giving the app special permissions (so this is a workaround and will most likely not be excepted in the official app store). Here is an example that worked on my Nexus 4 with Mir as the display manager and will maybe also work on other devices:
    Video of working app (a simple image editor):
    https://libre.video/videos/watch/2f2c5304-d278-4b43-84e0-3c463d3a6432
    Source Code:
    https://gitlab.com/AdamSchrey/image_and_buttons

    Some of the things done here will maybe not be necessary on some devices or in future versions of Ubuntu Touch.

    I had to add this lines to the .desktop file:
    X-Ubuntu-Touch=true
    X-Ubuntu-XMir-Enable=true

    I had to add this line to the .apparmor file:
    "template": "unconfined",

    Otherwise I would get this error:
    ** (process:26446): WARNING **: Unable to exec '/usr/lib/arm-linux-gnueabihf/ubuntu-app-launch/xmir-helper image-and-buttons_0.9.0 ut_session.sh' in '/opt/click.ubuntu.com/.click/users/phablet/image-and-buttons': Permission denied

    I had to export this variable to get bigger buttons/text/entries...:
    export GDK_SCALE=2

    To get an on screen keyboard I installed this packages on my device:
    maliit-inputcontext-gtk3 maliit-inputcontext-gtk2

    ...and exported this variable:
    export GTK_IM_MODULE=maliitphablet

    I reply to this old post, because when I searched for a solution, this was one of the first things that came up and I could not find any working examples my self.
    Maybe someone will find this helpful or will tell me if my app and my solution also work on other devices.

    iab_ut.png

    Some of the things I did, were taken from this website:
    http://kriscode.blogspot.com/2016/09/x-applications-on-ubuntu-phone.html

  • 1 Votes
    9 Posts
    3k Views
    G

    @hummlbach said in How to Import Python library to clickable?:
    The question about Python Library is SOLVED, with apt-get install on get_libs.py

    maybe I need to open new thread, about "How to check Crash Log in Ubuntu Touch?"
    OR
    "Create VoIP application with PJSIP in Ubuntu Touch"

    the Strace log didn't show me exactly what make the system reboot. this show me the technique to see what happen before system crashed
    since I'm using SSH to my phone, I follow the SSH step

    Log into phone using clickable shell Open another tab. Run clickable shell in tab 2 run tail -f /var/log/syslog to see system log in realtime Reproduce the crash in tab 1 Watch any error messages in the tab 2

    Now I need to move to another thread to discuss it, and close this Thread as Solved