Merge lp:~alan-griffiths/miral/fix-running-Qt-apps into lp:miral

Proposed by Alan Griffiths on 2016-06-08
Status: Merged
Approved by: Gerry Boland on 2016-06-08
Approved revision: 207
Merged at revision: 206
Proposed branch: lp:~alan-griffiths/miral/fix-running-Qt-apps
Merge into: lp:miral
Diff against target: 38 lines (+11/-0)
3 files modified
building_and_using_miral.md (+8/-0)
miral-shell/miral-run.sh (+2/-0)
miral/runner.cpp (+1/-0)
To merge this branch: bzr merge lp:~alan-griffiths/miral/fix-running-Qt-apps
Reviewer Review Type Date Requested Status
Gerry Boland 2016-06-08 Approve on 2016-06-08
Review via email: mp+296838@code.launchpad.net

Commit Message

Address more barriers to running Qt applications under MirAL

To post a comment you must log in.
207. By Alan Griffiths on 2016-06-08

Add some documentation of stuff that didn't "just work"

Gerry Boland (gerboland) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'building_and_using_miral.md'
2--- building_and_using_miral.md 2016-05-20 10:39:14 +0000
3+++ building_and_using_miral.md 2016-06-08 18:42:51 +0000
4@@ -86,3 +86,11 @@
5 $ echo startup-apps=gnome-terminal > ~/.config/miral-shell.config
6 ...
7 $ bin/miral-shell
8+
9+
10+Running Qt applications
11+-----------------------
12+
13+To run Qt applications under Mir you may need to install qtubuntu-desktop:
14+
15+ $ sudo apt-get install qtubuntu-desktop
16
17=== modified file 'miral-shell/miral-run.sh'
18--- miral-shell/miral-run.sh 2016-06-08 13:54:25 +0000
19+++ miral-shell/miral-run.sh 2016-06-08 18:42:51 +0000
20@@ -2,4 +2,6 @@
21 if [ "$1" = "gnome-terminal" ]
22 then extras='--app-id com.canonical.miral.Terminal'
23 fi
24+unset DISPLAY
25+unset QT_QPA_PLATFORMTHEME
26 GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir $* ${extras}&
27
28=== modified file 'miral/runner.cpp'
29--- miral/runner.cpp 2016-04-28 10:03:40 +0000
30+++ miral/runner.cpp 2016-06-08 18:42:51 +0000
31@@ -77,6 +77,7 @@
32 unsetenv("DISPLAY"); // Discourage toolkits from using X11
33 setenv("GDK_BACKEND", "mir", true); // configure GTK to use Mir
34 setenv("QT_QPA_PLATFORM", "ubuntumirclient", true); // configure Qt to use Mir
35+ unsetenv("QT_QPA_PLATFORMTHEME"); // Discourage Qt from unsupported theme
36 setenv("SDL_VIDEODRIVER", "mir", true); // configure SDL to use Mir
37
38 // gnome-terminal is the (only known) special case

Subscribers

People subscribed via source and target branches