Previously Stig Sandbeck Mathisen wrote: > ssh-add is already started from /etc/X11/Xsession, if you have ssh > installed. Other than that, you're right, of course. Actually ssh-agent is started. > I was thinking of some simple, global solution, available from the menu. I > suspect that "simple" and "global" does not belong together on this issue. > It might need some more thinking. Make a menu option which calls a script similar to the following: ------------------------------------------------------------------------------ #! /bin/sh TMPFILE=`tempfile` wmlist="/etc/X11/window-managers" xsession=$HOME/.xsession options=`sed -ne '/^[^#]/s#.*/\(.*\)#\1 ""#p' $wmlist | sort -u` whiptail --title "Select windowmanager" --fb --noitem \ --menu "Make your choice" 15 50 5 $options 2>$TMPFILE result=`cat $TMPFILE` rm $TMPFILE cat <<EOF > $xsession #! /bin/sh `grep $result $wmlist` EOF chmod 755 $xsession ------------------------------------------------------------------------------ (this needs some changes: check if you don't overwrite a non-generated .xsession for example, or use gdialog instead of whiptail if available, etc.). Wichert. -- ============================================================================== This combination of bytes forms a message written to you by Wichert Akkerman. E-Mail: wichert@cs.leidenuniv.nl WWW: http://www.wi.leidenuniv.nl/~wichert/
Attachment:
pgpu5eDFwGg1C.pgp
Description: PGP signature