From fb9ce2796cff7c896b0fec5042711b695f88be08 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 15 Oct 2016 01:07:44 -0700 Subject: Add the directory containing the executables to a file in /etc/paths.d. Do for executables what we do for man pages. Change-Id: I066f0199fd6064cae21e6ad079a1f344e1002c66 Reviewed-on: https://code.wireshark.org/review/18205 Reviewed-by: Guy Harris --- packaging/macosx/Scripts/wireshark-postinstall.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packaging') diff --git a/packaging/macosx/Scripts/wireshark-postinstall.sh b/packaging/macosx/Scripts/wireshark-postinstall.sh index 26608c96bf..3963a43724 100755 --- a/packaging/macosx/Scripts/wireshark-postinstall.sh +++ b/packaging/macosx/Scripts/wireshark-postinstall.sh @@ -19,6 +19,13 @@ do rm -f "$PLUGINS_PATH"/$plugin.so "$PLUGINS_PATH"/$plugin.la done +# Setting PATH +# if /etc/paths.d/Wireshark already exists we overwrite it. +# +WSPATH="$2/Wireshark.app/Contents/MacOS" + +echo $WSPATH > /etc/paths.d/Wireshark + # Setting MANPATH # if /etc/manpaths.d/Wireshark already exists we overwrite it. # -- cgit v1.2.1