[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian, gnome and shutdown again...



On Friday April 2 2004 13:18, Michal R. Hoffmann wrote:
> Sven Arvidsson wrote:
> []
>
> > Perhaps this can be of interest?
> >
> > http://jodrell.net/gnome-hacks/hacks.html?id=31
> > http://mail.gnome.org/archives/desktop-devel-list/2004-January/msg00552.h
> >tml
>
> I've already found it, but no, it is not sufficient. As I've written I'm
> looking for something to save-session-then-shutdown. This method allows to
> shutdown, but not to save session.
>
> The best would be "one button on the panel" solution, just my kids could
> use it (and they are small, they rather cannot read yet).
>

Why not write a tiny shell script and add your own icon to the panel... 
something like this should work (untested).

#!/bin/bash

# SAVE SESSION
/usr/bin/gnome-session-save

# SHUTDOWN
# add the following to sudoers file
# rob		ALL = /sbin/shutdown -h now
/usr/bin/sudo /sbin/shutdown -h now

Thx
Rob

-- 
Robert Wood <rob@rnwood.co.uk>
http://www.rnwood.co.uk/

 "If you can't make something good,
  make something look good." - Bill Gates



Reply to: