Merge lp:~alan-griffiths/miral/fix-1675794 into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 544
Merged at revision: 544
Proposed branch: lp:~alan-griffiths/miral/fix-1675794
Merge into: lp:miral
Diff against target: 53 lines (+5/-7)
4 files modified
miral-shell/miral-app.sh (+2/-4)
miral-shell/miral-desktop.sh (+1/-1)
miral-shell/miral-run.sh (+1/-1)
miral-shell/miral-xrun.sh (+1/-1)
To merge this branch: bzr merge lp:~alan-griffiths/miral/fix-1675794
Reviewer Review Type Date Requested Status
Alberto Aguirre (community) Approve
Gerry Boland (community) Approve
Cemil Azizoglu (community) Approve
Review via email: mp+320938@code.launchpad.net

Commit message

[miral-examples] change the server and client launch scripts to avoid using the default Mir socket (LP: #1675794)

To post a comment you must log in.
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

lgtm

review: Approve
lp:~alan-griffiths/miral/fix-1675794 updated
544. By Alan Griffiths

merge :parent

Revision history for this message
Gerry Boland (gerboland) :
review: Approve
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

OK.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'miral-shell/miral-app.sh'
--- miral-shell/miral-app.sh 2017-02-01 11:11:20 +0000
+++ miral-shell/miral-app.sh 2017-03-24 15:47:21 +0000
@@ -11,13 +11,11 @@
11 then11 then
12 echo "Error: Host endpoint '${MIR_SOCKET}' does not exists"; exit 112 echo "Error: Host endpoint '${MIR_SOCKET}' does not exists"; exit 1
13 fi13 fi
14 i=0; while [ -e "${XDG_RUNTIME_DIR}/mir_socket${i}" ]; do let i+=1 ;done
15 socket=${XDG_RUNTIME_DIR}/mir_socket${i}
16 hostsocket='--host-socket ${MIR_SOCKET}'14 hostsocket='--host-socket ${MIR_SOCKET}'
17else
18 socket=${XDG_RUNTIME_DIR}/mir_socket
19fi15fi
2016
17socket=${XDG_RUNTIME_DIR}/miral_socket
18
21while [ $# -gt 0 ]19while [ $# -gt 0 ]
22do20do
23 if [ "$1" == "--help" -o "$1" == "-h" ]21 if [ "$1" == "--help" -o "$1" == "-h" ]
2422
=== modified file 'miral-shell/miral-desktop.sh'
--- miral-shell/miral-desktop.sh 2017-02-01 11:11:20 +0000
+++ miral-shell/miral-desktop.sh 2017-03-24 15:47:21 +0000
@@ -1,6 +1,6 @@
1#! /bin/bash1#! /bin/bash
22
3socket=${XDG_RUNTIME_DIR}/mir_socket3socket=${XDG_RUNTIME_DIR}/miral_socket
4miral_server=miral-shell4miral_server=miral-shell
5launcher='gnome-terminal --app-id com.canonical.miral.Terminal'5launcher='gnome-terminal --app-id com.canonical.miral.Terminal'
6bindir=$(dirname $0)6bindir=$(dirname $0)
77
=== modified file 'miral-shell/miral-run.sh'
--- miral-shell/miral-run.sh 2016-10-06 15:36:15 +0000
+++ miral-shell/miral-run.sh 2017-03-24 15:47:21 +0000
@@ -3,4 +3,4 @@
3then extras='--app-id com.canonical.miral.Terminal'3then extras='--app-id com.canonical.miral.Terminal'
4fi4fi
5unset QT_QPA_PLATFORMTHEME5unset QT_QPA_PLATFORMTHEME
6GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir "$@" ${extras}&6MIR_SOCKET=${XDG_RUNTIME_DIR}/miral_socket GDK_BACKEND=mir QT_QPA_PLATFORM=ubuntumirclient SDL_VIDEODRIVER=mir "$@" ${extras}&
77
=== modified file 'miral-shell/miral-xrun.sh'
--- miral-shell/miral-xrun.sh 2017-03-24 13:03:21 +0000
+++ miral-shell/miral-xrun.sh 2017-03-24 15:47:21 +0000
@@ -29,6 +29,6 @@
29 shift29 shift
30done30done
3131
32Xmir -rootless :${port} & pid=$!32MIR_SOCKET=${XDG_RUNTIME_DIR}/miral_socket Xmir -rootless :${port} & pid=$!
33DISPLAY=:${port} "$@"33DISPLAY=:${port} "$@"
34kill ${pid}34kill ${pid}

Subscribers

People subscribed via source and target branches