TrustStore

Attachment 'unity8.conf'

Download

description "Unity Shell v8"
author "Ricardo Mendoza <ricmm@ubuntu.com>"

emits scope-ui-starting indicator-services-start

start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
stop on desktop-end

kill timeout 120

respawn
expect stop

pre-start script
    # Tell unity-mir to raise SIGSTOP after we start
    initctl set-env UNITY_MIR_EMITS_SIGSTOP=1

    if [ -n "$MIR_SOCKET" ]; then
        if [ -z "$UNITY_MIR_SOCKET" ]; then
            # Save original value of MIR_SOCKET in case we are restarted,
            # as we modify the variable for future jobs, including ourself.
            UNITY_MIR_SOCKET=$MIR_SOCKET
            initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
        fi

        # Point unity8 at unity-system-compositor
        MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
        initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
        initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET

        # Point all future jobs in this session to our Mir socket instead of
        # unity-system-compositor's socket.
        initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
        gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
    fi

    if [ -z "$UNITY_SCOPES_LIST" ]; then
        # FIXME: remove once we have this in dconf
        initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
    fi

    # Remove the socket if still there
    if [ -S "$MIR_SERVER_FILE" ]; then
        rm "$MIR_SERVER_FILE"
    fi

    initctl set-env --global MIR_SERVER_PROMPT_FILE=1

    initctl emit scope-ui-starting
    initctl emit --no-wait indicator-services-start
end script

exec ${BINARY:-unity8} $ARGS

post-stop script
    initctl set-env --global MIR_SOCKET=$UNITY_MIR_SOCKET
    initctl unset-env --global UNITY_MIR_SOCKET
end script

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2014-07-17 14:07:39, 2.0 KB) [[attachment:unity8.conf]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.