Qt apps can't run under Mir [Gtk-WARNING **: cannot open display: ]

Bug #1626804 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Invalid
Undecided
Unassigned
platform-api
Invalid
Undecided
Unassigned
platform-api (Ubuntu)
Invalid
Undecided
Unassigned
qtubuntu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Qt apps can't run under Mir - fail with a Gtk error trying to open an X display (!?)

$ qterminal --desktop_file_hint=unity8
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'

(qterminal:9053): Gtk-WARNING **: cannot open display:

$ qtcreator --desktop_file_hint=unity8
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'

(qtcreator:9083): Gtk-WARNING **: cannot open display:

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm, ubuntu-app-launch works for Unity8. But it would be nice if we could figure out how to make Qt apps generally just work in any Mir server without such workarounds.

tags: added: unity8-desktop
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Something like mirrun?

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Really, I've been running qt apps under mir_demo_server, miral-shell and egmde for ages, there isn't a problem. You need:

sudo apt-get install qtubuntu-desktop mir-utils

And then:

mirrun qterminal

Changed in canonical-devices-system-image:
status: New → Invalid
Changed in platform-api:
status: New → Invalid
Changed in platform-api (Ubuntu):
status: New → Invalid
Changed in qtubuntu (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. That led me to discover it was the presence of QT_QPA_PLATFORMTHEME that caused the failure.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.