summaryrefslogtreecommitdiffstats
path: root/src/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-20 02:02:27 +0000
committerDavid Robillard <d@drobilla.net>2008-10-20 02:02:27 +0000
commit955c64efcf30e87ab3d4bdb1520745c1997f0953 (patch)
tree7237ea80d10bf5a25fec1cb8e870ac55448ca444 /src/ingen
parent5e09c3e596c1b0860a996cf8f6023b43d5286a4a (diff)
downloadingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.tar.gz
ingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.tar.bz2
ingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.zip
Make Ingen and Patchage relocatable binaries when built as a bundle.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1690 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r--src/ingen/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index 2f729ab9..8d155c5c 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -28,6 +28,7 @@
#include "raul/Path.hpp"
#include "raul/SharedPtr.hpp"
#include "redlandmm/World.hpp"
+#include "shared/runtime_paths.hpp"
#include "module/global.hpp"
#include "module/Module.hpp"
#include "module/World.hpp"
@@ -86,6 +87,9 @@ main(int argc, char** argv)
return 1;
}
+ /* Set bundle path from executable location so resources/modules can be found */
+ Shared::set_bundle_path_from_code((void*)&main);
+
SharedPtr<Glib::Module> engine_module;
SharedPtr<Glib::Module> engine_http_module;
SharedPtr<Glib::Module> engine_osc_module;