0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/x11-packages/i3/i3-4.15_libi3_get_process_filename.c.patch
2022-04-18 14:08:05 +05:30

13 lines
680 B
Diff

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()");