icons: New file type icons for krk, so/o, sh
This commit is contained in:
parent
b5b809628d
commit
cc462d59f8
@ -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");
|
||||
|
BIN
base/usr/share/icons/48/krk.png
Normal file
BIN
base/usr/share/icons/48/krk.png
Normal 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 |
BIN
base/usr/share/icons/48/so.png
Normal file
BIN
base/usr/share/icons/48/so.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user