From f997a094f75b5ae26c35bd194205590064fbdc46 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 7 Aug 2024 16:15:31 +0200 Subject: [PATCH] [PM-10689] Fix rpm (& deb) packages not starting by following symlink (#10429) * Fix rpm packages not starting by following wrapper-script executable symlink * Restore newline * Add missing space --- apps/desktop/resources/memory-dump-wrapper.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/desktop/resources/memory-dump-wrapper.sh b/apps/desktop/resources/memory-dump-wrapper.sh index fa71cd7376..b62c050683 100644 --- a/apps/desktop/resources/memory-dump-wrapper.sh +++ b/apps/desktop/resources/memory-dump-wrapper.sh @@ -3,6 +3,10 @@ # disable core dumps ulimit -c 0 -APP_PATH=$(dirname "$0") +# might be behind symlink +RAW_PATH=$(readlink -f "$0") +APP_PATH=$(dirname $RAW_PATH) + # pass through all args -$APP_PATH/bitwarden-app "$@" \ No newline at end of file +$APP_PATH/bitwarden-app "$@" +