Re: Abolute path of argv[0]
stork_at_storkyak.com
Date: 11/12/05
- Next message: Jan Panteltje: "Re: Abolute path of argv[0]"
- Previous message: Waldek Hebisch: "Re: Porting to Linux - string routines segfault"
- In reply to: John Hasler: "Re: Abolute path of argv[0]"
- Next in thread: Jan Panteltje: "Re: Abolute path of argv[0]"
- Reply: Jan Panteltje: "Re: Abolute path of argv[0]"
- Reply: Floyd L. Davidson: "Re: Abolute path of argv[0]"
- Reply: Joe Pfeiffer: "Re: Abolute path of argv[0]"
- Reply: Kasper Dupont: "Re: Abolute path of argv[0]"
- Reply: phil-news-nospam_at_ipal.net: "Re: Abolute path of argv[0]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Nov 2005 05:59:47 -0800
>Please rethink what you would like to do. There is no good reason to do
>this and many good reasons not to.
This is a bit of a Windows convention... you could have an application
cd to itself so that it can find data files associated with it. For
example, if my application were installed in Program Files \ Mightyware
\ Commodity Server \, I can chdir("config") to get the configuration
file that goes with it. This is particularly useful to do in an
environment where a "root path" does not exist. [Drive letters again!]
It -seems- like all configuration files live in etc for a system so
that... in other words, do correct me if I'm wrong as I'm a Linux Noob
myself, but under Linux when an apps installs its libraries go to \lib,
its "executable" goes to \usr, and its configuration stuff goes in
\etc, and user data goes into \home\usrname, and all of this is by
convention and there is no need to cd in your application because you
can just use the straight up path to your configuration and other
files.
Correct?
- Next message: Jan Panteltje: "Re: Abolute path of argv[0]"
- Previous message: Waldek Hebisch: "Re: Porting to Linux - string routines segfault"
- In reply to: John Hasler: "Re: Abolute path of argv[0]"
- Next in thread: Jan Panteltje: "Re: Abolute path of argv[0]"
- Reply: Jan Panteltje: "Re: Abolute path of argv[0]"
- Reply: Floyd L. Davidson: "Re: Abolute path of argv[0]"
- Reply: Joe Pfeiffer: "Re: Abolute path of argv[0]"
- Reply: Kasper Dupont: "Re: Abolute path of argv[0]"
- Reply: phil-news-nospam_at_ipal.net: "Re: Abolute path of argv[0]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|