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

    Xmir without Libertine

    Scheduled Pinned Locked Moved Solved Support
    6 Posts 2 Posters 784 Views 1 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.
      • Y Offline
        ygrex
        last edited by

        Hi,

        how to run Xmir properly without Libertine?

        $ Xmir -debug -mirSocket /run/mir_socket -rootless -flatten -neverclose
        
        ARM architecture: Defaulting to software mode because glamor is not stableotless 
        XMir initialized with 4 visuals:
        	Visual id 0x28: ff ff00 ff0000, 24 planes
        	Visual id 0x29: ff ff00 ff0000, 24 planes
        	Visual id 0x2a: ff ff00 ff0000, 32 planes
        	Visual id 0x2b: ff ff00 ff0000, 32 planes
        Realize ROOT window 0x5595c69400 id=0x268 "": 720x1560 +0+0 parent=(nil)
        	depth=24 redir=0 type=0 class=1 visibility=3 viewable=1
        	override=0 _NET_WM_WINDOW_TYPE=0()
        	WM_TRANSIENT_FOR=(nil)
        	WM_HINTS=<none>
        

        this way it waits for connections, but when I run xeyes:

        $ DISPLAY=:0 xeyes
        
        Warning: locale not supported by C library, locale unchanged
        XIO:  fatal IO error 2 (No such file or directory) on X server ":0"
              after 58 requests (58 known processed) with 10 events remaining.
        

        Xmir fails:

        Realize window 0x5595e427f0 id=0x20000a "xeyes": 150x100 +1+1 parent=0x5595c69400
        	depth=24 redir=1 type=0 class=1 visibility=3 viewable=1
        	override=0 _NET_WM_WINDOW_TYPE=0()
        	WM_TRANSIENT_FOR=(nil)
        	WM_HINTS={flags=0x27,input=True}
        Aborted
        
        1 Reply Last reply Reply Quote 0
        • Y Offline
          ygrex
          last edited by

          desktop_file_hint did the trick, can be taken from the available ones if you do not care much:

          Xmir -mirSocket "$XDG_RUNTIME_DIR/mir_socket" --desktop_file_hint=dialer-app -debug -rootless
          

          also note mir_socket is from phablet run-directory

          PS
          it depends on application, but xeyes in particular is better without -rootless

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

            You can add these in the desktop file.

            X-Ubuntu-Touch=true
            X-Ubuntu-XMir-Enable=true
            

            Other libertine integrations most likely won't work though such as content hub and maybe keyboard too.

            Y 1 Reply Last reply Reply Quote 0
            • Y Offline
              ygrex @kugiigi
              last edited by

              @kugiigi which desktop file? I literally run "Xmir" and "xeyes" binaries as shown

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

                @ygrex Oh somehow, I assumed you're trying to do it for an app. Not sure how to do it via CLI.

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  ygrex
                  last edited by

                  desktop_file_hint did the trick, can be taken from the available ones if you do not care much:

                  Xmir -mirSocket "$XDG_RUNTIME_DIR/mir_socket" --desktop_file_hint=dialer-app -debug -rootless
                  

                  also note mir_socket is from phablet run-directory

                  PS
                  it depends on application, but xeyes in particular is better without -rootless

                  1 Reply Last reply Reply Quote 0
                  • Y ygrex has marked this topic as solved on
                  • Y Offline
                    ygrex
                    last edited by

                    was lucky to find the parameter on https://askubuntu.com/questions/760142/how-to-install-ubuntu-sdk-on-ubuntu-touch

                    for some reason Xmir -help does not show the parameter, neither it looks like anything important

                    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