termux-packages/x11-packages/xtrans/xtrans-1.3.5_Xtranslcl.c.patch
2022-04-18 14:08:05 +05:30

58 lines
1.7 KiB
Diff

diff -uNr xtrans-1.3.5/Xtranslcl.c xtrans-1.3.5.mod/Xtranslcl.c
--- xtrans-1.3.5/Xtranslcl.c 2014-09-12 21:32:47.000000000 +0300
+++ xtrans-1.3.5.mod/Xtranslcl.c 2018-06-15 19:11:42.979061153 +0300
@@ -250,7 +250,7 @@
#ifndef X11_t
#define X_STREAMS_DIR "/dev/X"
#else
-#define X_STREAMS_DIR "/tmp/.X11-pipe"
+#define X_STREAMS_DIR "/data/data/com.termux/files/usr/tmp/.X11-pipe"
#endif
#endif
@@ -260,7 +260,7 @@
#define PTSNODENAME "/dev/X/server."
#ifdef sun
-#define NAMEDNODENAME "/tmp/.X11-pipe/X"
+#define NAMEDNODENAME "/data/data/com.termux/files/usr/tmp/.X11-pipe/X"
#else
#define NAMEDNODENAME "/dev/X/Nserver."
@@ -270,7 +270,7 @@
#endif
#if defined(XIM_t)
#ifdef sun
-#define NAMEDNODENAME "/tmp/.XIM-pipe/XIM"
+#define NAMEDNODENAME "/data/data/com.termux/files/usr/tmp/.XIM-pipe/XIM"
#else
#define PTSNODENAME "/dev/X/XIM."
#define NAMEDNODENAME "/dev/X/NXIM."
@@ -280,7 +280,7 @@
#endif
#if defined(FS_t) || defined (FONT_t)
#ifdef sun
-#define NAMEDNODENAME "/tmp/.font-pipe/fs"
+#define NAMEDNODENAME "/data/data/com.termux/files/usr/tmp/.font-pipe/fs"
#else
/*
* USL has already defined something here. We need to check with them
@@ -294,7 +294,7 @@
#endif
#if defined(ICE_t)
#ifdef sun
-#define NAMEDNODENAME "/tmp/.ICE-pipe/"
+#define NAMEDNODENAME "/data/data/com.termux/files/usr/tmp/.ICE-pipe/"
#else
#define PTSNODENAME "/dev/X/ICE."
#define NAMEDNODENAME "/dev/X/NICE."
@@ -304,7 +304,7 @@
#endif
#if defined(TEST_t)
#ifdef sun
-#define NAMEDNODENAME "/tmp/.Test-unix/test"
+#define NAMEDNODENAME "/data/data/com.termux/files/usr/tmp/.Test-unix/test"
#endif
#define PTSNODENAME "/dev/X/transtest."
#define NAMEDNODENAME "/dev/X/Ntranstest."