termux-packages/x11-packages/i3/i3-4.15_libi3_get_process_f...

13 lines
680 B
Diff
Raw Normal View History

2018-09-10 00:42:26 +02:00
diff -uNr i3-4.15/libi3/get_process_filename.c i3-4.15.mod/libi3/get_process_filename.c
--- i3-4.15/libi3/get_process_filename.c 2018-03-10 19:29:14.000000000 +0200
+++ i3-4.15.mod/libi3/get_process_filename.c 2018-06-21 19:48:29.566920631 +0300
@@ -48,7 +48,7 @@
* /tmp/i3-<user>.XXXXXX */
struct passwd *pw = getpwuid(getuid());
const char *username = pw ? pw->pw_name : "unknown";
- sasprintf(&dir, "/tmp/i3-%s.XXXXXX", username);
+ sasprintf(&dir, "@TERMUX_PREFIX@/tmp/i3-%s.XXXXXX", username);
/* mkdtemp modifies dir */
if (mkdtemp(dir) == NULL) {
perror("mkdtemp()");