diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-10-15 01:07:44 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-10-15 08:08:29 +0000 |
commit | fb9ce2796cff7c896b0fec5042711b695f88be08 (patch) | |
tree | 18285484421886329872bd9bc227fe79063f888c /packaging/macosx | |
parent | 38682523f9ce3ed378c782a848ba1ba5a6fe430f (diff) |
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 <guy@alum.mit.edu>
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-x | packaging/macosx/Scripts/wireshark-postinstall.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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. # |