--- ./src/hugin1/hugin/PanoPanel.cpp.orig 2022-02-08 13:38:30.000000000 -0600 +++ ./src/hugin1/hugin/PanoPanel.cpp 2022-02-08 13:33:13.000000000 -0600 @@ -1271,7 +1271,7 @@ return; }; -#if defined __WXMAC__ && defined MAC_SELF_CONTAINED_BUNDLE +#if defined __WXMAC__ wxString cmd = MacGetPathToMainExecutableFileOfRegisteredBundle(CFSTR("net.sourceforge.hugin.PTBatcherGUI")); if(cmd != wxT("")) { @@ -1786,4 +1786,3 @@ } IMPLEMENT_DYNAMIC_CLASS(PanoPanelXmlHandler, wxXmlResourceHandler) -