[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 10/21: runtime: android: need to use a usab
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 10/21: runtime: android: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory. |
Date: |
Sat, 9 May 2015 14:05:37 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch android
in repository gnuradio.
commit c8f0e4fba79a379364b8b646be73e0fd5e92bbf1
Author: Tom Rondeau <address@hidden>
Date: Sun Jan 18 11:24:33 2015 -0500
runtime: android: need to use a usable, writable location for android apps,
so use the tmp path that we set up to point to the app's home directory.
---
gnuradio-runtime/lib/prefs.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc
index b303ffd..7381c78 100644
--- a/gnuradio-runtime/lib/prefs.cc
+++ b/gnuradio-runtime/lib/prefs.cc
@@ -62,7 +62,12 @@ namespace gr {
{
std::vector<std::string> fnames;
+#if ANDROID
+ fs::path dir = fs::path(gr::tmp_path());
+#else
fs::path dir = prefsdir();
+#endif
+
if(!fs::is_directory(dir))
return fnames;
@@ -77,7 +82,12 @@ namespace gr {
// Find if there is a ~/.gnuradio/config.conf file and add this to
// the end of the file list to override any preferences in the
// installed path config files.
+#if ANDROID
+ fs::path homedir = fs::path(gr::tmp_path());
+#else
fs::path homedir = fs::path(gr::appdata_path());
+#endif
+
homedir = homedir/".gnuradio/config.conf";
if(fs::exists(homedir)) {
fnames.push_back(homedir.string());
- [Commit-gnuradio] [gnuradio] branch android updated (1e31c64 -> ff27361), git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 01/21: cmake: android: adding exceptions and atomic to Boost deps; ordering in this patch is important., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 10/21: runtime: android: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory.,
git <=
- [Commit-gnuradio] [gnuradio] 02/21: logger: android: adding Android log functions for different logging levels., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 07/21: runtime: trying to use ANDROID to define certain behavior, git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 16/21: build: fixing complaints for static builds against libuhd.a., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 06/21: volk: using hypot instead of cabsf., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 04/21: runtime: android: issues related to vmcircbuf; only mmap_tmpfile version working currently., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 09/21: fft: defined a setting for the FFTW plan options if android or not., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 05/21: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 13/21: runtime: moved global block registry to a static get function., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 17/21: controlport: android: cleaning up; better logs; help to support android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 15/21: controlport: fixing complaints about no non-virtual dtor., git, 2015/05/09