Home » IceWM Logout can shutdown the computer

IceWM Logout can shutdown the computer

 I just realized that IceWM supports both a startup script, and just as cool, a shutdown script.

When you select “Logout” from the IceWM menu, IceWM checks the /home/username/.icewm directory for a shutdown file.

After tinkering with /etc/sudoers to give my mother the proper sudo privileges I added this .icewm/shutdown script:

#!/bin/sh
sudo /sbin/halt

Now when my mother logs out of IceWM her laptop will automatically shutdown. That will simplify my tech-support life!

Also some good info here: https://bbs.archlinux.org/viewtopic.php?id=40604


unixsamurai.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Read our Privacy Policy for more info.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.