Closed Bug 234515 Opened 21 years ago Closed 12 years ago

description of NS_OS_CURRENT_PROCESS_DIR extremely confusing

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Biesinger, Unassigned)

References

()

Details

Attachments

(1 file)

61 /* Property returns the directory in which the procces was started from. 62 * On Unix this will be the path in the MOZILLA_FIVE_HOME env var and if 63 * unset will be the current working directory. 64 */ 65 #define NS_OS_CURRENT_PROCESS_DIR "CurProcD" it's not clear what this refers to. especially, the mention of MOZILLA_FIVE_HOME makes it sound like this is really the installation directory. however, quoting bsmedberg in bug 229636 comment 26: ------- Additional Comment #26 From Benjamin Smedberg 2004-02-15 19:15 PST [reply] ------- The value NS_OS_CURRENT_PROCESS_DIR is the OS "current directory". The value NS_XPCOM_CURRENT_PROCESS_DIR is the directory of the mozilla executable. This is almost always what people actually want. I suggest changing the comments in nsDirectoryServiceDefs.h to what bsmedberg said in the quoted bug comment. Ideally, also change the name of NS_OS_CURRENT_PROCESS_DIR to NS_CURRENT_WORKING_DIRECTORY.
got a patch?
Attached patch patchSplinter Review
ok... here it is
Assignee: dougt → cbiesinger
Status: NEW → ASSIGNED
This feels wrong. If NS_OS_CURRENT_PROCESS_DIR really is just the current working directory, what makes it different from NS_OS_CURRENT_WORKING_DIR?
many platforms do not have a concept of a cwd -- when an linux application is launched from the desktop, the cwd could point anywhere. Mozilla tries overcome this by providng MOZILLA_FIVE_HOME. Other os's prefectly define what cwd is. There in lines the difference. In this context, I do not think that the comment change is currect.
I guess I'll let someone deal with this who knows this stuff...
Assignee: cbiesinger → dougt
Status: ASSIGNED → NEW
Assignee: dougt → nobody
QA Contact: xpcom
I was wrong. This does need something better, but I don't think I want to track it here.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: