[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV This weekend's hacking
From: |
Andrew Kuchling |
Subject: |
Re: LYNX-DEV This weekend's hacking |
Date: |
Thu, 8 May 1997 13:20:20 -0400 (EDT) |
Laura Eaves <address@hidden> wrote:
>It think a private dir is a good idea. The default bookmark file and .lynxrc
>already clutter up $HOME. I also create a .book/ dir for my multiple bookmark
>files. Maybe everything not beginning with / should go into $HOME/.lynx/ by
>default instead of $HOME.
For backwards compatibility, lynx should check for
$HOME/.lynx/lynx.rc, and if that's not found try $HOME/.lynxrc. That
needs just a little fiddling in LYrcFile.c:read_rc(). More generally,
it would be nice to do this for everything, but that's a good deal
more work, so this change would probably not be backwards-compatible
and would cause some pain.
LYUtils.c:Home_Dir() checks various environment variables, and
returns a string containing the home directory; if $HOME is set, it
could automatically append /.lynx/ to it and, if required, create the
directory. Otherwise, the current fallback cases would be used:
On DOS: $TEMP, C:\
On VMS: SYS$LOGIN, SYS$SCRATCH, sys$scratch
On Unix: The user's home directory from getpwuid(), or /tmp
For VMS, should .lynx be created if SYS$LOGIN is used? The
rest, except for C:\, are temp directories, so creating a .lynx subdir
seems unnecessary. For C:\, should it create C:\LYNXRC or something?
So, what do people think of this idea of a .lynx directory?
Andrew Kuchling
address@hidden
http://people.magnet.com/%7Eamk/
Save the Gutenberg Project! http://www.promo.net/pg/nl/pgny_nov96.html
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;