WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Shutdown computer without exittc  (Read 3523 times)

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #15 on: December 22, 2023, 02:24:55 PM »
They could send something a little more user-friendly (I can't program and I don't know much about linux), but thanks for trying to help.

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #16 on: December 22, 2023, 03:27:12 PM »
(I made a writing error in the post before)

Could you send something a little more user-friendly (I can't program and I don't know much about linux), but thanks for trying to help.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Shutdown computer without exittc
« Reply #17 on: December 22, 2023, 05:00:39 PM »
Hi rexi
We have already removed the exit application (your method works, but I also used the method where I deleted the application from the boot disk). If I do this and press the red marked button (see image), the tinycore GUI shuts down and tinycore starts in command line mode. And I'm trying to prevent this situation from happening. ...
Maybe it choked on a  File not found  error.

Try changing this:
Code: [Select]
sudo rm /usr/local/bin/exittcTo this:
Code: [Select]
echo -e "#!/bin/sh\nexit 0" > exittc
chmod 775 exittc
sudo mv exittc /usr/local/bin/

See if that works any better.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Shutdown computer without exittc
« Reply #18 on: December 23, 2023, 04:34:54 AM »
To recompile exittc:
Code: [Select]
tce-load -i compiletc git fltk-1.3-dev sstrip
git clone https://github.com/tinycorelinux/fltk_projects
cd fltk_projects

Make your changes to exittc/exittc.cxx

Edit Makefile:

from:
Code: [Select]
DIRS = add2file apps cpanel datetool editor \
exittc filetool flrun \
mirrorpicker mnttool mousetool \
network popask popup services \
stats swapfile tc-install \
tc-wbarconf wallpaper

..to:
Code: [Select]
DIRS = exittc
..then:
Code: [Select]
make V=1
..and your new exittc will be found at exittc/exittc

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Shutdown computer without exittc
« Reply #19 on: December 23, 2023, 08:29:39 AM »
Hi rexi
...
Code: [Select]
echo -e "#!/bin/sh\nexit 0" > exittc
chmod 775 exittc
sudo mv exittc /usr/local/bin/
...
I just tried this and it effectively disabled the  exittc  function.

Clicking on either  Exit  entry in the menu was silently ignored.
Clicking on the  Exit  icon was silently ignored.
Entering  exittc  on the command line was silently ignored.