Changed install directory for better package-manager compatibility.

This commit is contained in:
TheDarkBug 2021-03-07 17:15:42 +01:00
parent d05d45c750
commit 5d9f0c5880
2 changed files with 4 additions and 5 deletions

View file

@ -9,12 +9,12 @@ build: uwufetch.c
install:
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
ls ~/.config/uwufetch 1> /dev/null || mkdir ~/.config/uwufetch/
cp res/* ~/.config/uwufetch/
ls /usr/lib/uwufetch/ > /dev/null || sudo mkdir /usr/lib/uwufetch/
sudo cp res/* /usr/lib/uwufetch/
uninstall:
sudo rm $(INSTALL_DIR)$(NAME)
rm -rf ~/.config/uwufetch
sudo rm -rf /usr/lib/uwufetch/
debug: build install
clear

View file

@ -190,9 +190,8 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
}
}
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
//printf("e[1;1H\e[2J");
char command[256];
sprintf(command, "viu -t -w 18 -h 8 $HOME/.config/uwufetch/%s.png", version_name);
sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png", version_name);
system(command);
if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu");