diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-05 00:25:06 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-05 00:25:06 +0200 |
commit | 6b69fd5640871fb3d10a861f3eb3c9b4469794d6 (patch) | |
tree | 19efed138c8e995b45c046d694d65b5587e81caf /gtk2_ardour | |
parent | d1334074afd797db9f5ca2643565e18de9a6378e (diff) |
NSM preparation for OSX and windows
Note that on those platforms the application name
is a full path. This is permitted by the specs:
“executable_name MUST be the executable name that the program was launched with. For C programs, this is simply the value of argv[0]” [http://non.tuxfamily.org/nsm/API.html#n:1.2.1.1.]
but the current implementation of nsm expects the basename
only and searched $PATH.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/bundle_env_mingw.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/bundle_env_mingw.cc b/gtk2_ardour/bundle_env_mingw.cc index f53c461299..0d977cabba 100644 --- a/gtk2_ardour/bundle_env_mingw.cc +++ b/gtk2_ardour/bundle_env_mingw.cc @@ -123,6 +123,15 @@ fixup_bundle_environment (int, char* [], string & localedir) Glib::setenv ("VAMP_PATH", path, true); Glib::setenv ("SUIL_MODULE_DIR", Glib::build_filename(ardour_dll_directory(), "suil"), true); + + /* XXX this should really be PRODUCT_EXE see tools/x-win/package.sh + * ardour on windows does not have a startup wrapper script. + * + * then again, there's probably nobody using NSM on windows. + * because neither nsmd nor the GUI is currently available for windows. + * furthermore it'll be even less common for derived products. + */ + Glib::setenv ("ARDOUR_SELF", Glib::build_filename(ardour_dll_directory(), "ardour.exe"), true); } static __cdecl void |