[Gtkwave-users] OSX launcher script improvement
Brought to you by:
gtkwave,
joel1234567
From: Daniel O'C. <da...@do...> - 2022-10-09 03:31:18
|
Hi, I am having trouble with gtkwave built from Macports so I downloaded the prebuilt binary (3.3.107) which does work, however the launcher has a limitation where it expects CWD to be in the bundle. This is a bit limiting as it makes it harder to call from the command line, however it is easily fixed: --- a/contrib/bundle_for_osx/launcher.sh 2022-10-09 13:27:22.000000000 +1030 +++ b/contrib/bundle_for_osx/launcher.sh 2022-10-09 13:02:47.000000000 +1030 @@ -10,11 +10,8 @@ EXEC=exec fi -name="`basename $0`" -tmp="`pwd`/$0" -tmp=`dirname "$tmp"` -tmp=`dirname "$tmp"` -bundle=`dirname "$tmp"` +name=$(basename $0) +bundle="$(cd `dirname $0`; cd ../..; pwd)" bundle_contents="$bundle"/Contents bundle_res="$bundle_contents"/Resources bundle_lib="$bundle_res"/lib (this is a hand edited patch so the filenames might be wrong) I was going to file a patch on sf.net but it appears to be disabled so I am posting it here. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum |