0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 13:55:33 +00:00
Files
termux-packages/x11-packages/mutter/0006-fix-anno-file.patch
2025-04-04 21:50:45 +08:00

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;