From aabf9d2c813c6b6c051d9b8ad21402113c84684f Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Tue, 24 Oct 2023 11:45:10 +0200 Subject: [PATCH] Correction du script xstartup --- vnc/xstartup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vnc/xstartup b/vnc/xstartup index 68160a5..4d0fd6f 100755 --- a/vnc/xstartup +++ b/vnc/xstartup @@ -1,13 +1,14 @@ #!/bin/sh -xe +self="$(readlink -f "$0")" cd if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then - exec dbus-launch --exit-with-session ssh-agent "$0" "$@" + exec dbus-launch --exit-with-session "$self" "$@" fi if [ -z "$SSH_AGENT_PID" ]; then - exec ssh-agent "$0" "$@" + exec ssh-agent "$self" "$@" fi xfwm4 &