summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-07-11 14:57:16 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-07-11 14:57:16 -0400
commit09e471545bd1c41f474e733cc404867d87e87d49 (patch)
treed58274312a20b08b3b99fcea99f9a0c00998ce31 /gtk2_ardour/main.cc
parent2ddab2d2f6738f9c1dc0dd31a12cdeb6b7fe540e (diff)
remove direct of realpath(2), replace with canonical_path() which is a no-op on windows
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index cd26a8cf8f..01678ed080 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -31,6 +31,7 @@
#include "pbd/file_utils.h"
#include "pbd/textreceiver.h"
#include "pbd/failed_constructor.h"
+#include "pbd/pathexpand.h"
#include "pbd/pthread_utils.h"
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
#include "pbd/boost_debug.h"
@@ -277,7 +278,7 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
lpath.push_back (dir_path);
lpath.push_back ("share");
lpath.push_back ("locale");
- localedir = realpath (Glib::build_filename (lpath).c_str(), NULL);
+ localedir = canonical_path (Glib::build_filename (lpath)).c_str();
}
#endif