bug-gnustep
[Top][All Lists]
Advanced

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

Re: About defaults tool on Windows


From: Xavier Glattard
Subject: Re: About defaults tool on Windows
Date: Tue, 6 Mar 2007 10:07:45 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Richard Frith-Macdonald <richard <at> tiptree.demon.co.uk> writes:

> 
> 
> On 5 Mar 2007, at 17:14, Xavier Glattard wrote:
> 
> > Hi
> >
> > On my MinGW/WinXP system i have to add '.exe' to the name of the  
> > application
> > when I use 'defaults' ie :
> >
> >   defaults write Gorm.exe GSBackend win32ng
> >
> > 'Gorm' without '.exe' is ok (i can get the value back with  
> > defaults) but the
> > settings are not used by the application.
> >
> > Is it a bug or a system dependent functionnality ? ;o)
> 
> That's a very good question ... the 'domain' for a program is its  
> process name ... and that generally has a .exe extension on windows.
> 
> Should NSProcessInfo return the full process name (including  
> the .exe) as the processName?  I would say probably yes, since that  
> lets us find the executable easily.
> 
> If so, should NSUserDefaults strip the .exe?  I don't know.

I think it should. Two reasons :

- compatibility :
  - a script (installation ?) that use defaults is not portable.
  - a UserDefaults file is system dependent and can not be 
    shared between Windows and linux
- it's annoying ;-)
  i always forget the '.exe' and dont understand why it doesnt work ;-)

Question : may a domain name come from something that is not an application ?
(and that does not end with '.exe')










reply via email to

[Prev in Thread] Current Thread [Next in Thread]