Dear Fink developers,

I propose a new strategy for having users initialize their Fink installations.
We should have a little Aqua app, which at the moment I'm calling
NewFinkUser.app, which guides a user through setting up Fink on their
account.  The app should be run by the binary installer so that the
person installing Fink gets things set up correctly right from the
beginning; then it should be available for other users to double-click on
if they want to get Fink working in their user accounts.

Here's what the app would do
 *) find out which shell the user is running
    case tcsh) 
      *) check if the user has a .tcshrc
          case yes) check if "source %p/sw/init.csh" is already in the
                    .tcshrc
              case yes) exit
              case no) ask the user if it's OK to add "source
                      %p/sw/init.csh" to the end of .tcshrc
                    (interface idea: add it, display the file to the
                      user, with buttons available to say OK or Cancel
                      or Edit)
                    If the user doesn't agree, print some instructions
                    for doing this manually, and exit
            case no) fall through to case csh
      case csh)
        *) check if the user has a .cshrc
          case yes) check if "source %p/sw/init.csh" is already in the
                    .cshrc
              case yes) exit
              case no) ask the user if it's OK to add "source
                      %p/sw/init.csh" to the end of .cshrc
                    (interface idea: add it, display the file to the
                      user, with buttons available to say OK or Cancel
                      or Edit)
                    If the user doesn't agree, print some instructions
                    for doing this manually, and exit
           case no) ask the user if it's OK to create .cshrc with the
               "source" line in it... similar chance to answer/edit
       case bash)
         *) somebody needs to help me out here, but it should go the 
            same basic way

Anything missing?  Anybody want to suggest a tool for creating this .app
painlessly? 

  -- Dave




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to