44 lines
1.9 KiB
Diff
44 lines
1.9 KiB
Diff
diff -uNr radare2-1.6.0/libr/core/cconfig.c radare2-1.6.0.mod/libr/core/cconfig.c
|
|
--- radare2-1.6.0/libr/core/cconfig.c 2017-07-11 18:54:22.000000000 +0300
|
|
+++ radare2-1.6.0.mod/libr/core/cconfig.c 2017-10-05 17:44:43.354444523 +0300
|
|
@@ -2202,10 +2202,8 @@
|
|
SETPREF ("dir.plugins", R2_LIBDIR"/radare2/"R2_VERSION"/", "Path to plugin files to be loaded at startup");
|
|
#endif
|
|
SETCB ("dir.source", "", &cb_dirsrc, "Path to find source files");
|
|
- SETPREF ("dir.types", "/usr/include", "Default path to look for cparse type files");
|
|
-#if __ANDROID__
|
|
- SETPREF ("dir.projects", "/data/data/org.radare.radare2installer/radare2/projects", "Default path for projects");
|
|
-#elif __WINDOWS__
|
|
+ SETPREF ("dir.types", "@TERMUX_PREFIX@/include", "Default path to look for cparse type files");
|
|
+#if __WINDOWS__
|
|
SETPREF ("dir.projects", "~\\"R2_HOMEDIR"\\projects", "Default path for projects");
|
|
#else
|
|
SETPREF ("dir.projects", "~/"R2_HOMEDIR"/projects", "Default path for projects");
|
|
@@ -2343,6 +2341,9 @@
|
|
#if __WINDOWS__
|
|
r_config_set (cfg, "http.browser", "start");
|
|
#else
|
|
+#ifdef __ANDROID__
|
|
+ r_config_set (cfg, "http.browser", "xdg-open");
|
|
+#else
|
|
if (r_file_exists ("/usr/bin/openURL")) { // iOS ericautils
|
|
r_config_set (cfg, "http.browser", "/usr/bin/openURL");
|
|
} else if (r_file_exists ("/system/bin/toolbox")) {
|
|
@@ -2355,14 +2356,13 @@
|
|
} else {
|
|
r_config_set (cfg, "http.browser", "firefox");
|
|
}
|
|
+#endif
|
|
r_config_desc (cfg, "http.browser", "Command to open HTTP URLs");
|
|
#endif
|
|
SETI ("http.maxsize", 0, "Maximum file size for upload");
|
|
SETPREF ("http.bind", "localhost", "Server address");
|
|
SETPREF ("http.homeroot", "~/.config/radare2/www", "http home root directory");
|
|
-#if __ANDROID__
|
|
- SETPREF ("http.root", "/data/data/org.radare.radare2installer/www", "http root directory");
|
|
-#elif __WINDOWS__
|
|
+#if __WINDOWS__
|
|
SETPREF ("http.root", "www", "http root directory");
|
|
#else
|
|
SETPREF ("http.root", R2_WWWROOT, "http root directory");
|