Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: (OT) cross-platform $HOME

by BrowserUk (Pope)
on Feb 23, 2004 at 05:07 UTC ( #331034=note: print w/replies, xml ) Need Help??

in reply to Re: (OT) cross-platform $HOME
in thread (OT) cross-platform $HOME

On XP, you can short-circuit the route to the Application Data directory using $ENV{ APPDATA }, but I'm not sure when (which version) this became available. It wasn't there on NT4, so I think your suggestion is probably better if backwards compatiblity is a concern.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

Replies are listed 'Best First'.
Re: Re: Re: (OT) cross-platform $HOME
by allolex (Curate) on Feb 23, 2004 at 15:37 UTC

    ++BrowserUK. This approach is also better because it supports locales. The application data directory is not always called "Application Data" (e.g. in the German locale it's called "Anwendungsdateien").


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331034]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2021-03-03 18:30 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (87 votes). Check out past polls.