Lagrange [work/v1.10]

Android: Better downloads directory

=> 5d50db93f30e22592187e0dab9a8466946b65587

diff --git a/src/app.c b/src/app.c
index 7cd9e9e2..58eecf51 100644
--- a/src/app.c
+++ b/src/app.c
@@ -325,6 +325,9 @@ static const char *dataDir_App_(void) {
 }
 
 static const char *downloadDir_App_(void) {
+#if defined (iPlatformAndroidMobile)
+    return concatPath_CStr(SDL_AndroidGetInternalStoragePath(), "Downloads");
+#endif
 #if defined (iPlatformLinux) || defined (iPlatformOther)
     /* Parse user-dirs.dirs using the `xdg-user-dir` tool. */
     iProcess *proc = iClob(new_Process());
@@ -346,9 +349,6 @@ static const char *downloadDir_App_(void) {
         makeDirs_Path(dlDir);
     }
     return cstr_String(dlDir);
-#endif
-#if defined (iPlatformAndroidMobile)
-    return SDL_AndroidGetInternalStoragePath();
 #endif
     return defaultDownloadDir_App_;
 }
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/cdiff/5d50db93f30e22592187e0dab9a8466946b65587
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
61.827092 milliseconds
Gemini-to-HTML Time
0.169335 milliseconds

This content has been proxied by September (3851b).