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

13 lines
705 B
Diff

diff -uNr xarchiver-0.5.4.13/src/socket.c xarchiver-0.5.4.13.mod/src/socket.c
--- xarchiver-0.5.4.13/src/socket.c 2018-03-13 12:22:11.000000000 +0200
+++ xarchiver-0.5.4.13.mod/src/socket.c 2018-06-23 22:33:18.981851013 +0300
@@ -217,7 +217,7 @@
display = gdk_display_get_default();
if (socket_info.file_name == NULL)
- socket_info.file_name = g_strconcat("/tmp/." PACKAGE "-socket", display ? gdk_display_get_name(display) : ":0", "-", g_get_user_name(), NULL);
+ socket_info.file_name = g_strconcat("@TERMUX_PREFIX@/tmp/." PACKAGE "-socket", display ? gdk_display_get_name(display) : ":0", "-", g_get_user_name(), NULL);
sock = socket_fd_connect_unix(socket_info.file_name);
if (sock < 0)