summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 81f7ba5..a83c8ad 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -32,8 +32,7 @@
void
set_bundle_environment()
{
- const std::string binary = binary_location();
- const std::string bundle = binary.substr(0, binary.find_last_of('/'));
+ const std::string bundle = bundle_location();
const std::string lib_path = bundle + "/lib";
if (!Glib::file_test(lib_path, Glib::FILE_TEST_EXISTS)) {
// If lib does not exist, we have not been bundleified, do nothing