on xenial help sign in
Delete stale sockets. Fixes: 1285215
commitf79f0e1f90f4a31c73a38f3812449bc50547f88e authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 28 Feb 2014, 10:47 (13 years ago) parent69812ea83245eb
1 file changed+5
data/unity8.conf+5
data/unity8.conf+5
@@ -28,6 +28,11 @@ pre-start script
2828 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
2929 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
3030 fi
31+
32+ # Remove the socket if still there
33+ if [ -S "$MIR_SERVER_FILE" ]; then
34+ rm "$MIR_SERVER_FILE"
35+ fi
3136end script
3237
3338exec ${BINARY:-unity8} $ARGS