macOS location is '/usr/local/lib' and the rest is back to '/usr/lib'
This commit is contained in:
parent
dd8a1646d8
commit
460a17d04d
2 changed files with 10 additions and 6 deletions
|
|
@ -325,8 +325,10 @@ void print_image(struct info* user_info) {
|
|||
else {
|
||||
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);
|
||||
else
|
||||
sprintf(command, "viu -t -w 18 -h 8 /usr/local/lib/uwufetch/%s.png 2> /dev/null", user_info->os_name); // image command for other systems
|
||||
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
|
||||
}
|
||||
printf("\n");
|
||||
if (system(command) != 0) // if viu is not installed or the image is missing
|
||||
|
|
@ -631,8 +633,10 @@ void print_ascii(struct info* user_info) {
|
|||
if (!file) { // if the file does not exist in the local directory, open it from the installation directory
|
||||
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
|
||||
else if (strcmp(user_info->os_name, "macos") == 0)
|
||||
sprintf(ascii_file, "/usr/local/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
||||
else
|
||||
sprintf(ascii_file, "/usr/lib/uwufetch/ascii/%s.txt", user_info->os_name);
|
||||
|
||||
file = fopen(ascii_file, "r");
|
||||
if (!file) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue