summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/sys_paths.cc
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-09-12 14:16:50 -0600
committerSebastian Koslowski <koslowski@kit.edu>2016-09-12 14:19:29 -0600
commitf7cdfff6a85ce52b1d7c0b5131645fcb77405fe8 (patch)
tree908af9bf8d1c512e22116cb3afbc89eb5883cc93 /gnuradio-runtime/lib/sys_paths.cc
parenta867a290194228d09ba93f0f46e3a4e4523f5396 (diff)
parentaf4323d1e471476efa255e3df745397f7c8a1b71 (diff)
Merge remote-tracking branch 'upstream/next' into gtk3
Diffstat (limited to 'gnuradio-runtime/lib/sys_paths.cc')
-rw-r--r--gnuradio-runtime/lib/sys_paths.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/sys_paths.cc b/gnuradio-runtime/lib/sys_paths.cc
index 3bf6697bac..f63d7730e4 100644
--- a/gnuradio-runtime/lib/sys_paths.cc
+++ b/gnuradio-runtime/lib/sys_paths.cc
@@ -64,10 +64,16 @@ namespace gr {
return tmp_path();
}
- const char *userconf_path()
+ std::string __userconf_path()
{
boost::filesystem::path p(appdata_path());
p = p / ".gnuradio";
+ return p.string();
+ }
+
+ const char *userconf_path()
+ {
+ static std::string p(__userconf_path());
return p.c_str();
}