Skip to content

Commit

Permalink
[miral-desktop] pass user environment settings (like MIR_EXPERIMENTAL…
Browse files Browse the repository at this point in the history
…_XDG_SHELL) to the server
  • Loading branch information
AlanGriffiths committed Jan 22, 2018
1 parent e94d0f1 commit 5d31164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/miral-shell/miral-desktop.sh
Expand Up @@ -40,9 +40,8 @@ if [ -e "${XDG_RUNTIME_DIR}/${wayland_display}" ]; then echo "Error: wayland end
vt_login_session=$(who -u | grep tty${vt} | grep ${USER} | wc -l)
if [ "${vt_login_session}" == "0" ]; then echo "Error: please log into tty${vt} first"; exit 1 ;fi

sudo ls >> /dev/null
oldvt=$(sudo fgconsole)
sudo sh -c "LD_LIBRARY_PATH=${LD_LIBRARY_PATH} XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} ${bindir}${miral_server} --wayland-socket-name ${wayland_display} --vt ${vt} --arw-file --file ${socket} $*; chvt ${oldvt}"&
sudo --background --preserve-env sh -c "${bindir}${miral_server} --wayland-socket-name ${wayland_display} --vt ${vt} --arw-file --file ${socket} $*; chvt ${oldvt}"

while [ ! -e "${socket}" ]; do echo "waiting for ${socket}"; sleep 1 ;done

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance-tests/wayland/wlcs
Submodule wlcs updated from 393082 to acb3e9

0 comments on commit 5d31164

Please sign in to comment.