UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How does --container-mode work with clickable desktop?

    Scheduled Pinned Locked Moved App Development
    4 Posts 3 Posters 39 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Online
      grgraf
      last edited by

      Hi all,

      I'm new to Clickable and trying to understand how it interacts with containers.

      According to https://clickable-ut.dev/en/latest/commands.html, the --container-mode is useful for running Clickable from within a container.

      Here's what I tried:

      • clickable ci β€” opens a root bash shell inside a container.
      • Inside that container shell, I run: clickable desktop --container-mode

      I expected this to launch my app (a simple Hello World) directly within the current container. Instead, I get the following error:

      Container was not initialized with Container Mode.

      This is confusing because clickable desktop help lists --container-mode as a supported argument.
      My question: what is the intended use of --container-mode with clickable desktop, if it doesn't actually run the app in the current container?

      Thanks in advance for any clarification!

      arubislanderA 1 Reply Last reply Reply Quote 0
      • arubislanderA Offline
        arubislander @grgraf
        last edited by arubislander

        @grgraf I think container-mode is and option for clickable in general. But it doesn't make much sense to run clickable desktop inside a container created by clickable itself. i.e. that was not an envisioned use case.

        Container mode is primarily used for building your click inside a ci container on GitHub / GitLab / whatever CI infrastructure you use, if it leverages containers.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        JingPad (24.04-1.x daily)
        OnePlus Nord N10 5G (24.04-2.x daily)
        PinePhone OG (20.04)
        Meizu Pro 5 (16.04 DEV)

        1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          If I remember correctly, one use case for container mode is to use clickable in Ubuntu Touch. I don't think clickable desktop ever worked there. You just launch the app on your device. I haven't explored clickable much but maybe it'll work if you use Qt Creator which I believe runs inside the container.

          G 1 Reply Last reply Reply Quote 0
          • G Online
            grgraf @kugiigi
            last edited by

            @kugiigi that's actually where I came from. I tried to start QT Creator with clickable ide (which starts QT Creator in a container) and then run the app by clicking Run or Debug button in QT Creator. But I didn't manage to configure Run settings for the project to make this work.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better πŸ’—

            Register Login
            • First post
              Last post