2021-10-18 18:21:47 +02:00
|
|
|
diff --git a/uwufetch.c b/uwufetch.c
|
2022-09-22 15:41:42 +02:00
|
|
|
index f2d7857..8191888 100644
|
2021-10-18 18:21:47 +02:00
|
|
|
--- a/uwufetch.c
|
|
|
|
+++ b/uwufetch.c
|
2022-09-22 15:41:42 +02:00
|
|
|
@@ -160,9 +160,9 @@ void print_image(struct info* user_info) {
|
|
|
|
if (strcmp(user_info->os_name, "android") == 0)
|
|
|
|
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
|
|
|
|
else if (strcmp(user_info->os_name, "macos") == 0)
|
|
|
|
- sprintf(command, "viu -t -w 18 -h 8 /usr/local/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name);
|
|
|
|
+ sprintf(command, "viu -t -w 18 -h 8 @out@/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name);
|
2021-10-18 18:21:47 +02:00
|
|
|
else
|
2022-09-22 15:41:42 +02:00
|
|
|
- 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
|
|
|
|
+ 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
|
2021-10-18 18:21:47 +02:00
|
|
|
}
|
|
|
|
printf("\n");
|
2022-09-22 15:41:42 +02:00
|
|
|
if (system(command) != 0) // if viu is not installed or the image is missing
|
|
|
|
@@ -587,9 +587,9 @@ void print_ascii(struct info* user_info) {
|
|
|
|
if (strcmp(user_info->os_name, "android") == 0)
|
|
|
|
sprintf(ascii_file, "/data/data/com.termux/files/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
|
|
|
else if (strcmp(user_info->os_name, "macos") == 0)
|
|
|
|
- sprintf(ascii_file, "/usr/local/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
|
|
|
+ sprintf(ascii_file, "@out@/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
|
|
|
else
|
|
|
|
- sprintf(ascii_file, "/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
|
|
|
+ sprintf(ascii_file, "@out@/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
|
|
|
|
|
|
|
file = fopen(ascii_file, "r");
|
|
|
|
if (!file) {
|