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

    How to launch GUI apps from CLI?

    Scheduled Pinned Locked Moved Support
    5 Posts 4 Posters 768 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.
    • nikalonN Offline
      nikalon
      last edited by

      Hello everyone!

      Is there any way to open GUI apps from the command line app? I'm trying to open a SDL2 game that I compiled from the phone itself and this is the error that I get:

      [2018-08-20 17:18:10.193243] <ERROR> MirConnectionAPI: Caught exception at client library boundary (in release): /build/mir-0.24.20ubuntu11+ubports+0~20180312130613.14~1.gbp8ec514/src/client/rpc/stream_socket_transport.cpp(168): Throw in function virtual void mir::client::rpc::StreamSocketTransport::send_message(const std::vector<unsigned char>&, const std::vector<mir::Fd>&)
      Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<mir::socket_disconnected_error> >
      std::exception::what: Failed to send message to server: Broken pipe
      32, "Broken pipe"
      Sys_Error: Error while initializing SDL: Failed to connect to the mir server: Failed to connect: not accepted by server
      

      Sorry if this question has been asked before, but I'm pretty new to this platform and it's difficult to find specific information about certain components of the OS.

      advocatuxA alan_gA 2 Replies Last reply Reply Quote 0
      • advocatuxA Offline
        advocatux @nikalon
        last edited by

        @nikalon afaik you can start GUI apps from CLI but inside Libertine, but let's see if anyone has any trick hidden in his/her sleeves 🙂

        1 Reply Last reply Reply Quote 0
        • alan_gA Offline
          alan_g @nikalon
          last edited by

          @nikalon you have to "trick" Unity8 into allowing the application to connect. I have not tried it recently, but something like this... https://lists.ubuntu.com/archives/mir-devel/2015-September/001267.html

          1 Reply Last reply Reply Quote 0
          • D Offline
            doniks
            last edited by

            ubuntu-app-launch ?

            1 Reply Last reply Reply Quote 0
            • nikalonN Offline
              nikalon
              last edited by

              @alan_g said in How to launch GUI apps from CLI?:

              @nikalon you have to "trick" Unity8 into allowing the application to connect. I have not tried it recently, but something like this... https://lists.ubuntu.com/archives/mir-devel/2015-September/001267.html

              Yes! That works, thank you! For anyone who wants the answer you have to append the paremeter --desktop_file_hint=unity8 or -- --desktop_file_hint=unity8 to a regular binary you want to open. This is the syntax:

              ./application -- --desktop_file_hint=unity8
              

              Unfortunately the game crashes because of some OpenGL problem that I don't know how to solve yet:

              library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found
              
              ----- Initializing OpenGL -----
              Initializing OpenGL subsystem
              Using 8 color bits, 24 depth, 8 stencil display
              shutting down: Unable to initialize OpenGL (glAccum)
              idRenderSystem::Shutdown()
              Shutting down OpenGL subsystem
              Sys_Error: Unable to initialize OpenGL (glAccum)
              shutdown terminal support
              
              

              But that's an unrelated question that I should ask elsewhere.

              1 Reply Last reply Reply Quote 1

              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