Right then.

I notice that the GIMP is very in that it creates a `~/.gimp subdirectory' 
to place multiple configurations. So does the the CDE on my Solaris box in 
`~/.dt'. On non-Unix machine the `dot' directory does not make a lot of 
sense. Is there a way to find if the JVM is running on a unix box or not?


If not I can do it the hard way.
can you mail me your UNIX & non UNIX settings:

System.out.println( "os.name    = "+ System.getProperty( "os.name"));
System.out.println( "os.arch    = "+ System.getProperty( "os.arch"));    
System.out.println( "os.version = "+ System.getProperty( "os.version"));

Somebody must have already have done this, if not I publish the results in 
a web table in 1999!

Peter Pilgrim

______________________________ Reply Separator _________________________________
Subject: Re: Reading (All) Environment Variables in W95/NT
Author:  summer ([EMAIL PROTECTED]) at lon-mime
Date:    15/12/98 15:44


On Tue, 15 Dec 1998 [EMAIL PROTECTED] wrote:

> Ok assuming you can do 3 __where__ is the standard place for the property file
s 
> per user per machine? I think it is best to write a software installer program

> to do this task. It would write the property file to `user.home' say and the 
> main application would know where to look for it and load that file and make i
t 
> a environment settings default. 
> 

There is a convention on unix that user's config stuff ins written in ~/ 
with the result my home directory's become littered with dozens of .*rc 
files.

I've settled on putting mine in ~/etc/ 
You can find the home directory from the system properties and build a valid 
directory name for the runtime environment using other information there. I 
don't know what MACs impose, but on OS/2 it's reasonable to assume long file 
names (HPFS is optional, but lots of other software requires it possibly 
including java: I have OS/2 plus java, but as I have no FAT partitions the 
question didn't come up.  NT's NTFS also allows long names: neither's case 
sensitive though so AB.DATA = ab.datA. Don't know the rules for WIN9x, but I 
assume that it's compatible in this respect with NT.

>

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support. 
Configuration, networking, combined IBM ftpsites index.

Reply via email to