--- a/src/inkscape-main.cpp
+++ b/src/inkscape-main.cpp
@@ -81,7 +81,7 @@ static void set_themes_env()
         return;
 #else
         // initialize with glib default (don't call g_get_system_data_dirs; it's cached!)
-        xdg_data_dirs = "/usr/local/share/:/usr/share/";
+        xdg_data_dirs = "@TERMUX_PREFIX@/local/share/:@TERMUX_PREFIX@/share/";
 #endif
     }
 
