python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / uwufetch / fix-paths.patch
blob4869104819d633797a5772b1ca8bbeb8c1c3d5cb
1 diff --git a/uwufetch.c b/uwufetch.c
2 index f2d7857..8191888 100644
3 --- a/uwufetch.c
4 +++ b/uwufetch.c
5 @@ -160,9 +160,9 @@ void print_image(struct info* user_info) {
6 if (strcmp(user_info->os_name, "android") == 0)
7 sprintf(command, "viu -t -w 18 -h 8 /data/data/com.termux/files/usr/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for android
8 else if (strcmp(user_info->os_name, "macos") == 0)
9 - sprintf(command, "viu -t -w 18 -h 8 /usr/local/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name);
10 + sprintf(command, "viu -t -w 18 -h 8 @out@/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name);
11 else
12 - sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for other systems
13 + sprintf(command, "viu -t -w 18 -h 8 @out@/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for other systems
15 printf("\n");
16 if (system(command) != 0) // if viu is not installed or the image is missing
17 @@ -587,9 +587,9 @@ void print_ascii(struct info* user_info) {
18 if (strcmp(user_info->os_name, "android") == 0)
19 sprintf(ascii_file, "/data/data/com.termux/files/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
20 else if (strcmp(user_info->os_name, "macos") == 0)
21 - sprintf(ascii_file, "/usr/local/lib/uwufetch/ascii/%s.txt", user_info->os_name);
22 + sprintf(ascii_file, "@out@/lib/uwufetch/ascii/%s.txt", user_info->os_name);
23 else
24 - sprintf(ascii_file, "/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
25 + sprintf(ascii_file, "@out@/lib/uwufetch/ascii/%s.txt", user_info->os_name);
27 file = fopen(ascii_file, "r");
28 if (!file) {