Skip to content

Commit

Permalink
Update readme and debian dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
konect-V committed Aug 19, 2024
1 parent 9223bf6 commit a78903f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install-ninja-debian:
sudo chmod a+x /usr/local/bin/ninja

deps-debian: update-pkgs-debian install-ninja-debian
sudo apt install nasm build-essential parted qemu-utils qemu-system-x86 meson python3 python3-pip python3-setuptools python3-wheel ninja-build cmake sed m4 texinfo libgmp-dev bison flex curl -y
sudo apt install nasm build-essential rsync parted qemu-utils qemu-system-x86 meson python3 python3-pip python3-setuptools python3-wheel ninja-build cmake sed m4 texinfo libgmp-dev bison flex curl -y
sudo pip3 install --upgrade pip
sudo pip3 install --break-system-packages pillow
sudo pip3 install --break-system-packages meson
Expand Down
Binary file added meta/screenshots/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added meta/screenshots/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<img src="./meta/screenshots/2.png?raw=true" width="90%"/>
<img src="./meta/screenshots/3.png?raw=true" width="90%"/>
<img src="./meta/screenshots/4.png?raw=true" width="90%"/>
<img src="./meta/screenshots/5.png?raw=true" width="90%"/>
<img src="./meta/screenshots/6.png?raw=true" width="90%"/>
</p>

# Use nightly build
Expand Down
9 changes: 5 additions & 4 deletions sources/core/apps/desktop/source/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,15 @@ void draw_desktop(){
load_pen(font, &fb, 0, 0, DATE_TIME_SIZE, 0, DATE_TIME_COLOR);
write_paragraph(font, 0, 0, fb.width, PARAGRAPH_CENTER, date_time_str);


char page_string[20];
snprintf(page_string, 20, "Page : %d / %d", current_page + 1, page_count);
write_paragraph(font, 0, 0, fb.width - 25, PARAGRAPH_RIGHT, page_string);

if(update_icon_page){
update_icon_page = false;
update_focus = false;

char page_string[20];
snprintf(page_string, 20, "Page : %d / %d", current_page + 1, page_count);
write_paragraph(font, 0, 0, fb.width - 25, PARAGRAPH_RIGHT, page_string);

int c = 0;
for(int j = 0; j < icon_row_count; j++){
for(int i = 0; i < icon_column_count; i++){
Expand Down
42 changes: 21 additions & 21 deletions sources/core/apps/init/source/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,27 @@ int main(int argc, char* argv[]){
wait(&status);
}

// {
// pid_t p = fork();
// if(p < 0){
// perror("init: fork fail");
// return EXIT_FAILURE;
// }else if(p == 0){
// char* exe_argv[2] = {"/usr/bin/lock", NULL};
// execvp("/usr/bin/lock", exe_argv);

// perror("init: /usr/bin/lock");
// return EXIT_FAILURE;
// }

// int status = EXIT_FAILURE;
// wait(&status);

// if(status != EXIT_SUCCESS){
// printf("error: /usr/bin/lock return: %d", status);
// return status;
// }
// }
{
pid_t p = fork();
if(p < 0){
perror("init: fork fail");
return EXIT_FAILURE;
}else if(p == 0){
char* exe_argv[2] = {"/usr/bin/lock", NULL};
execvp("/usr/bin/lock", exe_argv);

perror("init: /usr/bin/lock");
return EXIT_FAILURE;
}

int status = EXIT_FAILURE;
wait(&status);

if(status != EXIT_SUCCESS){
printf("error: /usr/bin/lock return: %d", status);
return status;
}
}

printf("\e[0;33m--- Welcome to Kot ---\e[0m\n");
printf("If you encounter any bugs during your session, please report them on the github repository:\n\e[0;36mhttps://github.com/kot-org/kot\e[0m\n\n");
Expand Down

0 comments on commit a78903f

Please sign in to comment.