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")"
|
[ -z "$DBUS_SESSION_BUS_ADDRESS" ] && \
|
||||||
cd
|
exec dbus-launch --exit-with-session -- "$0" "$@"
|
||||||
|
|
||||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
[ -z "$SSH_AGENT_PID" ] && \
|
||||||
exec dbus-launch --exit-with-session "$self" "$@"
|
exec ssh-agent -- "$0" "$@"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$SSH_AGENT_PID" ]; then
|
|
||||||
exec ssh-agent "$self" "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
xfwm4 &
|
xfwm4 &
|
||||||
artix-pipewire-launcher restart &
|
artix-pipewire-launcher restart &
|
||||||
|
|
Loading…
Reference in a new issue