vnc/xstartup : meilleure version

This commit is contained in:
Ahurac 2024-04-04 15:39:24 +02:00
parent 2d2f273111
commit d1ed4ae184

View file

@ -1,15 +1,11 @@
#!/bin/sh -xe
#!/usr/bin/env sh
cd || exit
self="$(readlink -f "$0")"
cd
[ -z "$DBUS_SESSION_BUS_ADDRESS" ] && \
exec dbus-launch --exit-with-session -- "$0" "$@"
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec dbus-launch --exit-with-session "$self" "$@"
fi
if [ -z "$SSH_AGENT_PID" ]; then
exec ssh-agent "$self" "$@"
fi
[ -z "$SSH_AGENT_PID" ] && \
exec ssh-agent -- "$0" "$@"
xfwm4 &
artix-pipewire-launcher restart &