vnc/xstartup : meilleure version
This commit is contained in:
parent
2d2f273111
commit
d1ed4ae184
1 changed files with 6 additions and 10 deletions
16
vnc/xstartup
16
vnc/xstartup
|
@ -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 &
|
||||
|
|
Loading…
Reference in a new issue