Mir

Merge lp:~alan-griffiths/mir/fix-1716436 into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 4253
Proposed branch: lp:~alan-griffiths/mir/fix-1716436
Merge into: lp:mir
Prerequisite: lp:~alan-griffiths/mir/fix-1716353
Diff against target: 233 lines (+61/-16)
8 files modified
examples/miral-shell/miral-app.sh (+10/-6)
examples/miral-shell/miral-desktop.sh (+16/-9)
src/include/platform/mir/options/configuration.h (+1/-0)
src/platform/options/default_configuration.cpp (+3/-0)
src/platform/symbols.map (+7/-0)
src/server/frontend/wayland/wayland_connector.cpp (+16/-1)
src/server/frontend/wayland/wayland_connector.h (+2/-0)
src/server/frontend/wayland/wayland_default_configuration.cpp (+6/-0)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-1716436
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Approve
Chris Halse Rogers Approve
Review via email: mp+330843@code.launchpad.net

Commit message

Allow (and use) setting of the wayland display socket name. (LP: #1716436)

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

FAILED: Continuous integration, rev:4252
https://mir-jenkins.ubuntu.com/job/mir-ci/3664/
Executed test runs:
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-mir/5015/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/5247
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=artful/5235
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/5235
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/5235
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5058/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5058/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5058/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5058/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5058/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5058/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5058
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5058/artifact/output/*zip*/output.zip
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5058/console

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3664/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote :

Seems sensible

review: Approve
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:4253
https://mir-jenkins.ubuntu.com/job/mir-ci/3665/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/5016
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/5248
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=artful/5236
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/5236
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/5236
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5059/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5059
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5059/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3665/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'examples/miral-shell/miral-app.sh'
--- examples/miral-shell/miral-app.sh 2017-09-06 16:44:12 +0000
+++ examples/miral-shell/miral-app.sh 2017-09-18 08:42:01 +0000
@@ -15,6 +15,7 @@
15fi15fi
1616
17socket=${XDG_RUNTIME_DIR}/miral_socket17socket=${XDG_RUNTIME_DIR}/miral_socket
18wayland_display=miral_wayland
1819
19while [ $# -gt 0 ]20while [ $# -gt 0 ]
20do21do
@@ -23,14 +24,16 @@
23 echo "$(basename $0) - Handy launch script for a hosted miral \"desktop session\""24 echo "$(basename $0) - Handy launch script for a hosted miral \"desktop session\""
24 echo "Usage: $(basename $0) [options] [shell options]"25 echo "Usage: $(basename $0) [options] [shell options]"
25 echo "Options are:"26 echo "Options are:"
26 echo " -kiosk use miral-kiosk instead of ${miral_server}"27 echo " -kiosk use miral-kiosk instead of ${miral_server}"
27 echo " -launcher <launcher> use <launcher> instead of '${launcher}'"28 echo " -launcher <launcher> use <launcher> instead of '${launcher}'"
28 echo " -socket <socket> set the mir socket [${socket}]"29 echo " -socket <socket> set the legacy mir socket [${socket}]"
29 echo " -bindir <bindir> path to the miral executable [${bindir}]"30 echo " -wayland-socket-name <socket> set the wayland socket [${wayland_display}]"
31 echo " -bindir <bindir> path to the miral executable [${bindir}]"
30 exit 032 exit 0
31 elif [ "$1" == "-kiosk" ]; then miral_server=miral-kiosk33 elif [ "$1" == "-kiosk" ]; then miral_server=miral-kiosk
32 elif [ "$1" == "-launcher" ]; then shift; launcher=$134 elif [ "$1" == "-launcher" ]; then shift; launcher=$1
33 elif [ "$1" == "-socket" ]; then shift; socket=$135 elif [ "$1" == "-socket" ]; then shift; socket=$1
36 elif [ "$1" == "-wayland-socket-name" ];then shift; wayland_display=$1
34 elif [ "$1" == "-bindir" ]; then shift; bindir=$137 elif [ "$1" == "-bindir" ]; then shift; bindir=$1
35 elif [ "${1:0:2}" == "--" ]; then break38 elif [ "${1:0:2}" == "--" ]; then break
36 fi39 fi
@@ -40,15 +43,16 @@
40if [ "${bindir}" != "" ]; then bindir="${bindir}/"; fi43if [ "${bindir}" != "" ]; then bindir="${bindir}/"; fi
4144
42if [ -e "${socket}" ]; then echo "Error: session endpoint '${socket}' already exists"; exit 1 ;fi45if [ -e "${socket}" ]; then echo "Error: session endpoint '${socket}' already exists"; exit 1 ;fi
46if [ -e "${wayland_display}" ]; then echo "Error: wayland endpoint '${wayland_display}' already exists"; exit 1 ;fi
4347
44qtubuntu_desktop_installed=$(apt list qtubuntu-desktop 2>/dev/null | grep installed | wc -l)48qtubuntu_desktop_installed=$(apt list qtubuntu-desktop 2>/dev/null | grep installed | wc -l)
45if [ "${qtubuntu_desktop_installed}" == "0" ]; then echo "Need qtubuntu-desktop - run \"sudo apt install qtubuntu-desktop\""; exit 1 ;fi49if [ "${qtubuntu_desktop_installed}" == "0" ]; then echo "Need qtubuntu-desktop - run \"sudo apt install qtubuntu-desktop\""; exit 1 ;fi
4650
47sh -c "${bindir}${miral_server} $* ${hostsocket} --file ${socket} --desktop_file_hint=miral-shell.desktop"&51sh -c "${bindir}${miral_server} $* ${hostsocket} --file ${socket} --wayland-socket-name ${wayland_display} --desktop_file_hint=miral-shell.desktop"&
4852
49while [ ! -e "${socket}" ]; do echo "waiting for ${socket}"; sleep 1 ;done53while [ ! -e "${socket}" ]; do echo "waiting for ${socket}"; sleep 1 ;done
5054
51unset QT_QPA_PLATFORMTHEME55unset QT_QPA_PLATFORMTHEME
52MIR_SOCKET=${socket} XDG_SESSION_TYPE=mir GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir dbus-run-session -- ${launcher}56MIR_SOCKET=${socket} XDG_SESSION_TYPE=mir GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir WAYLAND_DISPLAY=${wayland_display} dbus-run-session -- ${launcher}
53killall ${bindir}${miral_server}57killall ${bindir}${miral_server}
5458
5559
=== modified file 'examples/miral-shell/miral-desktop.sh'
--- examples/miral-shell/miral-desktop.sh 2017-09-11 13:23:39 +0000
+++ examples/miral-shell/miral-desktop.sh 2017-09-18 08:42:01 +0000
@@ -1,6 +1,7 @@
1#! /bin/bash1#! /bin/bash
22
3socket=${XDG_RUNTIME_DIR}/miral_socket3socket=${XDG_RUNTIME_DIR}/miral_socket
4wayland_display=miral_wayland
4miral_server=miral-shell5miral_server=miral-shell
5launcher=qterminal6launcher=qterminal
6bindir=$(dirname $0)7bindir=$(dirname $0)
@@ -13,17 +14,19 @@
13 echo "$(basename $0) - Handy launch script for a miral \"desktop session\""14 echo "$(basename $0) - Handy launch script for a miral \"desktop session\""
14 echo "Usage: $(basename $0) [options] [shell options]"15 echo "Usage: $(basename $0) [options] [shell options]"
15 echo "Options are:"16 echo "Options are:"
16 echo " -kiosk use miral-kiosk instead of ${miral_server}"17 echo " -kiosk use miral-kiosk instead of ${miral_server}"
17 echo " -launcher <launcher> use <launcher> instead of '${launcher}'"18 echo " -launcher <launcher> use <launcher> instead of '${launcher}'"
18 echo " -vt <termid> set the virtual terminal [${vt}]"19 echo " -vt <termid> set the virtual terminal [${vt}]"
19 echo " -socket <socket> set the mir socket [${socket}]"20 echo " -socket <socket> set the legacy mir socket [${socket}]"
20 echo " -bindir <bindir> path to the miral executable [${bindir}]"21 echo " -wayland-socket-name <socket> set the wayland socket [${wayland_display}]"
22 echo " -bindir <bindir> path to the miral executable [${bindir}]"
21 exit 023 exit 0
22 elif [ "$1" == "-kiosk" ]; then miral_server=miral-kiosk24 elif [ "$1" == "-kiosk" ]; then miral_server=miral-kiosk
23 elif [ "$1" == "-launcher" ]; then shift; launcher=$125 elif [ "$1" == "-launcher" ]; then shift; launcher=$1
24 elif [ "$1" == "-vt" ]; then shift; vt=$126 elif [ "$1" == "-vt" ]; then shift; vt=$1
25 elif [ "$1" == "-socket" ]; then shift; socket=$127 elif [ "$1" == "-socket" ]; then shift; socket=$1
26 elif [ "$1" == "-bindir" ]; then shift; bindir=$1/28 elif [ "$1" == "-wayland-socket-name" ];then shift; wayland_display=$1
29 elif [ "$1" == "-bindir" ]; then shift; bindir=$1
27 elif [ "${1:0:2}" == "--" ]; then break30 elif [ "${1:0:2}" == "--" ]; then break
28 fi31 fi
29 shift32 shift
@@ -31,15 +34,19 @@
3134
32if [ "${bindir}" != "" ]; then bindir="${bindir}/"; fi35if [ "${bindir}" != "" ]; then bindir="${bindir}/"; fi
3336
34if [ -e "${socket}" ]; then echo "Error: '${socket}' already exists"; exit 1 ;fi37if [ -e "${socket}" ]; then echo "Error: session endpoint '${socket}' already exists"; exit 1 ;fi
38if [ -e "${wayland_display}" ]; then echo "Error: wayland endpoint '${wayland_display}' already exists"; exit 1 ;fi
39
40qtubuntu_desktop_installed=$(apt list qtubuntu-desktop 2>/dev/null | grep installed | wc -l)
41if [ "${qtubuntu_desktop_installed}" == "0" ]; then echo "Need qtubuntu-desktop - run \"sudo apt install qtubuntu-desktop\""; exit 1 ;fi
3542
36sudo ls >> /dev/null43sudo ls >> /dev/null
37oldvt=$(sudo fgconsole)44oldvt=$(sudo fgconsole)
38sudo sh -c "LD_LIBRARY_PATH=${LD_LIBRARY_PATH} XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} ${bindir}${miral_server} --vt ${vt} --arw-file --file ${socket} $*; chvt ${oldvt}"&45sudo sh -c "LD_LIBRARY_PATH=${LD_LIBRARY_PATH} XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} --wayland-socket-name ${wayland_display} ${bindir}${miral_server} --vt ${vt} --arw-file --file ${socket} $*; chvt ${oldvt}"&
3946
40while [ ! -e "${socket}" ]; do echo "waiting for ${socket}"; sleep 1 ;done47while [ ! -e "${socket}" ]; do echo "waiting for ${socket}"; sleep 1 ;done
4148
42unset QT_QPA_PLATFORMTHEME49unset QT_QPA_PLATFORMTHEME
43MIR_SOCKET=${socket} XDG_SESSION_TYPE=mir GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir dbus-run-session -- ${launcher}50MIR_SOCKET=${socket} XDG_SESSION_TYPE=mir GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir WAYLAND_DISPLAY=${wayland_display} dbus-run-session -- ${launcher}
44sudo killall ${bindir}${miral_server}51sudo killall ${bindir}${miral_server}
4552
4653
=== modified file 'src/include/platform/mir/options/configuration.h'
--- src/include/platform/mir/options/configuration.h 2017-07-28 17:00:43 +0000
+++ src/include/platform/mir/options/configuration.h 2017-09-18 08:42:01 +0000
@@ -27,6 +27,7 @@
27{27{
28namespace options28namespace options
29{29{
30extern char const* const wayland_socket_name_opt;
30extern char const* const server_socket_opt;31extern char const* const server_socket_opt;
31extern char const* const prompt_socket_opt;32extern char const* const prompt_socket_opt;
32extern char const* const no_server_socket_opt;33extern char const* const no_server_socket_opt;
3334
=== modified file 'src/platform/options/default_configuration.cpp'
--- src/platform/options/default_configuration.cpp 2017-07-28 17:00:43 +0000
+++ src/platform/options/default_configuration.cpp 2017-09-18 08:42:01 +0000
@@ -27,6 +27,7 @@
2727
28namespace mo = mir::options;28namespace mo = mir::options;
2929
30char const* const mo::wayland_socket_name_opt = "wayland-socket-name";
30char const* const mo::server_socket_opt = "file,f";31char const* const mo::server_socket_opt = "file,f";
31char const* const mo::prompt_socket_opt = "prompt-file,p";32char const* const mo::prompt_socket_opt = "prompt-file,p";
32char const* const mo::no_server_socket_opt = "no-file";33char const* const mo::no_server_socket_opt = "no-file";
@@ -139,6 +140,8 @@
139 namespace po = boost::program_options;140 namespace po = boost::program_options;
140141
141 add_options()142 add_options()
143 (wayland_socket_name_opt, po::value<std::string>(),
144 "Overrides the default socket name used for communicating with clients")
142 (host_socket_opt, po::value<std::string>(),145 (host_socket_opt, po::value<std::string>(),
143 "Host socket filename")146 "Host socket filename")
144 (server_socket_opt, po::value<std::string>()->default_value(::mir::default_server_socket),147 (server_socket_opt, po::value<std::string>()->default_value(::mir::default_server_socket),
145148
=== modified file 'src/platform/symbols.map'
--- src/platform/symbols.map 2017-05-25 08:58:03 +0000
+++ src/platform/symbols.map 2017-09-18 08:42:01 +0000
@@ -153,3 +153,10 @@
153 };153 };
154 local: *;154 local: *;
155};155};
156
157MIRPLATFORM_1.0 {
158 global:
159 extern "C++" {
160 mir::options::wayland_socket_name_opt*;
161 };
162} MIRPLATFORM_0.27;
156163
=== modified file 'src/server/frontend/wayland/wayland_connector.cpp'
--- src/server/frontend/wayland/wayland_connector.cpp 2017-09-11 13:23:39 +0000
+++ src/server/frontend/wayland/wayland_connector.cpp 2017-09-18 08:42:01 +0000
@@ -1680,6 +1680,7 @@
1680}1680}
16811681
1682mf::WaylandConnector::WaylandConnector(1682mf::WaylandConnector::WaylandConnector(
1683 optional_value<std::string> const& display_name,
1683 std::shared_ptr<mf::Shell> const& shell,1684 std::shared_ptr<mf::Shell> const& shell,
1684 DisplayChanger& display_config,1685 DisplayChanger& display_config,
1685 std::shared_ptr<mg::GraphicBufferAllocator> const& allocator,1686 std::shared_ptr<mg::GraphicBufferAllocator> const& allocator,
@@ -1733,7 +1734,21 @@
1733 mir::log_warning("No WaylandAllocator EGL support!");1734 mir::log_warning("No WaylandAllocator EGL support!");
1734 }1735 }
17351736
1736 if (auto const wayland_display = wl_display_add_socket_auto(display.get()))1737 char const* wayland_display = nullptr;
1738
1739 if (!display_name.is_set())
1740 {
1741 wayland_display = wl_display_add_socket_auto(display.get());
1742 }
1743 else
1744 {
1745 if (!wl_display_add_socket(display.get(), display_name.value().c_str()))
1746 {
1747 wayland_display = display_name.value().c_str();
1748 }
1749 }
1750
1751 if (wayland_display)
1737 {1752 {
1738 if (arw_socket)1753 if (arw_socket)
1739 {1754 {
17401755
=== modified file 'src/server/frontend/wayland/wayland_connector.h'
--- src/server/frontend/wayland/wayland_connector.h 2017-09-14 11:08:07 +0000
+++ src/server/frontend/wayland/wayland_connector.h 2017-09-18 08:42:01 +0000
@@ -21,6 +21,7 @@
2121
22#include "mir/frontend/connector.h"22#include "mir/frontend/connector.h"
23#include "mir/fd.h"23#include "mir/fd.h"
24#include "mir/optional_value.h"
2425
25#include <wayland-server-core.h>26#include <wayland-server-core.h>
26#include <thread>27#include <thread>
@@ -50,6 +51,7 @@
50{51{
51public:52public:
52 WaylandConnector(53 WaylandConnector(
54 optional_value<std::string> const& display_name,
53 std::shared_ptr<Shell> const& shell,55 std::shared_ptr<Shell> const& shell,
54 DisplayChanger& display_config,56 DisplayChanger& display_config,
55 std::shared_ptr<graphics::GraphicBufferAllocator> const& allocator,57 std::shared_ptr<graphics::GraphicBufferAllocator> const& allocator,
5658
=== modified file 'src/server/frontend/wayland/wayland_default_configuration.cpp'
--- src/server/frontend/wayland/wayland_default_configuration.cpp 2017-09-11 13:23:39 +0000
+++ src/server/frontend/wayland/wayland_default_configuration.cpp 2017-09-18 08:42:01 +0000
@@ -33,7 +33,13 @@
33 {33 {
34 bool const arw_socket = the_options()->is_set(options::arw_server_socket_opt);34 bool const arw_socket = the_options()->is_set(options::arw_server_socket_opt);
3535
36 optional_value<std::string> display_name;
37
38 if (the_options()->is_set(options::wayland_socket_name_opt))
39 display_name = the_options()->get<std::string>(options::wayland_socket_name_opt);
40
36 return std::make_shared<mf::WaylandConnector>(41 return std::make_shared<mf::WaylandConnector>(
42 display_name,
37 the_frontend_shell(),43 the_frontend_shell(),
38 *the_frontend_display_changer(),44 *the_frontend_display_changer(),
39 the_buffer_allocator(),45 the_buffer_allocator(),

Subscribers

People subscribed via source and target branches