~michael-sheldon/ubuntu-touch-session/fix-1659388

1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# /usr/sbin/lightdm-session is very X specific.  We don't want it for Ubuntu
# Touch's Mir sessions.  So determine if we are running Mir or X and do the
# right thing.  Ideally LightDM would do this for us, but in the meantime...

if [ -n "$MIR_SOCKET" ]; then
    exec $@
else
    exec /usr/sbin/lightdm-session $@
fi