• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 380 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 17 Jan 2023, 18:51

      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 18 Jan 2023, 15:04

        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 18 Jan 2023, 10:42

          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 18 Jan 2023, 12:45 Reply Quote 0
          • Y Offline
            ygrex @kugiigi
            last edited by 18 Jan 2023, 12:45

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

            K 1 Reply Last reply 18 Jan 2023, 13:50 Reply Quote 0
            • K Offline
              kugiigi @ygrex
              last edited by 18 Jan 2023, 13:50

              @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 18 Jan 2023, 15:04

                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 18 Jan 2023, 15:04
                • Y Offline
                  ygrex
                  last edited by 18 Jan 2023, 15:07

                  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
                  3 out of 6
                  • First post
                    3/6
                    Last post