Blame autobuild/osx/synfig_osx_launcher.cpp

c2f156
#include <cstdlib></cstdlib>
c2f156
#include <string></string>
c2f156
c2f156
int main(int argc, char* argv[]) {
c2f156
  std::string buf(argv[0]);
c2f156
c2f156
  std::size_t found = buf.rfind('/'); // looking for a last slash in path
c2f156
  if (found != std::string::npos) {
c2f156
    buf = buf.substr(0, found + 1); // get the directory where exe is located
c2f156
  }
c2f156
c2f156
  return system(buf.append("SynfigStudio.sh").c_str());
c2f156
}