icons: New file type icons for krk, so/o, sh

This commit is contained in:
K. Lange 2021-04-07 19:29:37 +09:00
parent b5b809628d
commit cc462d59f8
4 changed files with 11 additions and 2 deletions

View File

@ -657,6 +657,15 @@ static void load_directory(const char * path, int modifies_history) {
} else {
sprintf(f->filetype, "Shell Script");
}
} else if (has_extension(f, ".krk")) {
sprintf(f->icon, "krk");
if (statbuf.st_mode & 0111) {
/* Make executable */
sprintf(f->launcher, "SELF");
sprintf(f->filetype, "Executable Kuroko Script");
} else {
sprintf(f->filetype, "Kuroko Script");
}
} else if (has_extension(f, ".py")) {
sprintf(f->icon, "py");
if (statbuf.st_mode & 0111) {
@ -670,10 +679,10 @@ static void load_directory(const char * path, int modifies_history) {
sprintf(f->icon, "file");
sprintf(f->filetype, "Kernel Module");
} else if (has_extension(f, ".o")) {
sprintf(f->icon, "file");
sprintf(f->icon, "so");
sprintf(f->filetype, "Object File");
} else if (has_extension(f, ".so")) {
sprintf(f->icon, "file");
sprintf(f->icon, "so");
sprintf(f->filetype, "Shared Object File");
} else if (has_extension(f, ".S")) {
sprintf(f->icon, "file");

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB