Merge lp:~alan-griffiths/miral/basic-Unity8-compatibility into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 463
Merged at revision: 463
Proposed branch: lp:~alan-griffiths/miral/basic-Unity8-compatibility
Merge into: lp:miral
Diff against target: 24 lines (+3/-0)
2 files modified
miral-shell/shell_main.cpp (+2/-0)
miral/runner.cpp (+1/-0)
To merge this branch: bzr merge lp:~alan-griffiths/miral/basic-Unity8-compatibility
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+312246@code.launchpad.net

Commit message

Fix the initial problems running miral-shell under Unity8

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

This at least connects:

$ miral-shell --host ${XDG_RUNTIME_DIR}/mir_socket --file ${XDG_RUNTIME_DIR}/not_mir_socket --startup qterminal

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

> This at least connects:
>
> $ miral-shell --host ${XDG_RUNTIME_DIR}/mir_socket --file
> ${XDG_RUNTIME_DIR}/not_mir_socket --startup qterminal

That should be:

$ miral-shell --host ${XDG_RUNTIME_DIR}/mir_socket --file ${XDG_RUNTIME_DIR}/not_mir_socket --startup gnome-terminal --desktop_file_hint=miral-shel.desktop

Revision history for this message
Gerry Boland (gerboland) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'miral-shell/shell_main.cpp'
--- miral-shell/shell_main.cpp 2016-11-15 12:55:30 +0000
+++ miral-shell/shell_main.cpp 2016-12-01 11:56:00 +0000
@@ -77,6 +77,8 @@
7777
78 return runner.run_with(78 return runner.run_with(
79 {79 {
80 CommandLineOption{[&](std::string const& ) { },
81 "desktop_file_hint", "Ignored for Unity8 compatability", "miral-shell.desktop"},
80 CursorTheme{"default"},82 CursorTheme{"default"},
81 window_managers,83 window_managers,
82 display_configuration_options,84 display_configuration_options,
8385
=== modified file 'miral/runner.cpp'
--- miral/runner.cpp 2016-08-18 08:35:17 +0000
+++ miral/runner.cpp 2016-12-01 11:56:00 +0000
@@ -98,6 +98,7 @@
98 }98 }
99 while (std::chrono::steady_clock::now() < time_limit);99 while (std::chrono::steady_clock::now() < time_limit);
100100
101 setenv("MIR_SOCKET", socket_file.c_str(), true); // configure Mir socket
101 setenv("GDK_BACKEND", "mir", true); // configure GTK to use Mir102 setenv("GDK_BACKEND", "mir", true); // configure GTK to use Mir
102 setenv("QT_QPA_PLATFORM", "ubuntumirclient", true); // configure Qt to use Mir103 setenv("QT_QPA_PLATFORM", "ubuntumirclient", true); // configure Qt to use Mir
103 unsetenv("QT_QPA_PLATFORMTHEME"); // Discourage Qt from unsupported theme104 unsetenv("QT_QPA_PLATFORMTHEME"); // Discourage Qt from unsupported theme

Subscribers

People subscribed via source and target branches