mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-10 13:55:33 +00:00
18 lines
394 B
Diff
18 lines
394 B
Diff
Fallback to `@TERMUX_PREFIX@/tmp` if env `XDG_RUNTIME_DIR` is not set.
|
|
|
|
--- a/src/core/meta-anonymous-file.c
|
|
+++ b/src/core/meta-anonymous-file.c
|
|
@@ -115,6 +115,12 @@
|
|
char *name;
|
|
|
|
path = getenv ("XDG_RUNTIME_DIR");
|
|
+#ifdef __TERMUX__
|
|
+ if (!path)
|
|
+ {
|
|
+ path = "@TERMUX_PREFIX@/tmp";
|
|
+ }
|
|
+#endif
|
|
if (!path)
|
|
{
|
|
errno = ENOENT;
|