This will be solved basically in two parts:

1. Xmir will only launch when it needs to.  The DISPLAY env var will be set and 
some method of detecting when Xmir is needed will be used.  There are a couple 
of ways of starting Xmir on-demand and just picking one that will work both 
with deb based systems and the future Xmir snap will be key.
2. Any toolkits that support Mir will need to try use Mir first before trying 
to use X.  It was recently discovered that, even though Qt apps are being told 
to use Mir, if Xmir is available and DISPLAY is set, it will use X which is a 
bug.  Also, Gtk will need to be patched to try to use Mir first.

I will work on the libertine/ubuntu-app-launch part of this to make it
so Xmir will start only when needed.

** Changed in: libertine/devel
       Status: Triaged => In Progress

** Changed in: libertine/devel
     Assignee: (unassigned) => Christopher Townsend (townsend)

** Changed in: ubuntu-app-launch (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: ubuntu-app-launch (Ubuntu)
     Assignee: (unassigned) => Christopher Townsend (townsend)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/1672931

Title:
  [regression] Qt & GTK apps on Unity8 are defaulting to Xmir instead of
  native GTK/Qt (and so menus don't appear in the titlebar)

Status in Canonical System Image:
  Confirmed
Status in Libertine:
  In Progress
Status in Libertine devel series:
  In Progress
Status in Libertine trunk series:
  Triaged
Status in gtk+3.0 package in Ubuntu:
  Confirmed
Status in libertine package in Ubuntu:
  Triaged
Status in qtubuntu package in Ubuntu:
  Confirmed
Status in ubuntu-app-launch package in Ubuntu:
  In Progress
Status in unity8 package in Ubuntu:
  Confirmed

Bug description:
  Qt & GTK apps on Unity8 are defaulting to Xmir instead of native
  GTK/Qt on Mir.

  I noticed a slight change in appearance and performance, but also:

  dan      25410  0.1  0.2 423316 38996 ?        Sl   11:14   0:00 Xmir 
-rootless -displayfd 3 -mir org.gnome.Calculator
  dan      25456  1.8  0.5 606084 91736 ?        Sl   11:14   0:03 Xmir 
-rootless -displayfd 3 -mir org.gnome.Nautilus
  dan      25611  1.7  0.2 345312 35520 ?        Sl   11:18   0:00 Xmir 
-rootless -displayfd 3 -mir webbrowser-app_webbrowser-app_10

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1672931/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to