YEAH!!! I MADE IT!

I wanted to halt the system after leaving E.
It was not so easy to find out the right way,
but once found, it`s sooo eeasy!

An Entry in ~/.enlightenment/file.menu starts 1st script "eexit":

#!/bin/sh
# run fini in the background
~/bin/fini &

Then comes "fini":

#! /bin/sh
# exit e & halt system 
/usr/X11R6/bin/eesh -e exit       # pops up Log-Out-Dialog
while /bin/ps -C X > /dev/null    # test if X is still running, suppress output
    do
    sleep 5                       # if true, wait 5.sec, and try again
    done
    /sbin/halt > /dev/tty1        # if false, halt system, print output to terminal

I put both in /<my home directory>/bin
After that, I added to my ~/.profile

PATH=$PATH:/sbin:~/bin

to make sure halt and the scripts found by bash.
Then set them executeable to users:

chmod u+s /sbin/halt  # might be crap, but any tries with change group
                      # etc. won`t work. Got a better idea? let me know!!
chmod u+x ~/bin/fini

So far, everything works well.

musketaquid
________________________________________________________________
Mit der Grupppen-SMS von WEB.DE FreeMail k�nnen Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to