Closed Bug 276592 Opened 20 years ago Closed 20 years ago

NS_OS_CURRENT_WORKING_DIR is not implemented

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(3 files)

For the directory service, NS_OS_CURRENT_WORKING_DIR either was never implemented, or the impl got removed when xpcom-obsolete was split off.
Attachment #169987 - Flags: review?(darin)
Attachment #169987 - Flags: review?(darin) → review+
dougt: was NS_OS_CURRENT_WORKING_DIR perhaps removed for a reason?
NS_OS_CURRENT_WORKING_DIR isn't a very well defined place xp.
What's not well-defined about it? The current working dir is pretty standard, no? We're just reflecting getcwd() into XPCOM.
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
what is the cwd of a application launched from the desktop?
(In reply to comment #6) > what is the cwd of a application launched from the desktop? I'm sure it is not undefined, and if memory serves... I think it should be the desktop folder. Certainly, if launched with a shortcut, the user even has the opportunity to set the working directory for the executable. (I'm talking about Windows here; I suspect other desktops would behave similarly.)
darin -- i didn't say it was undefined, but rather ill-defined, hence it was removed. I had no problem with mapping some key to whatever getcwd returns, but the problem is what do we say this means to someone that doesn't know all of the issues with cwd? More to the point -- what do you want to do with this key that you can't do with the existing keys?
Map command-line arguments. See bug 276588.
Reopening because this breaks the build on OS/2 with the currently used GCC 3.2.2 (which comes without direct.h while _getcwd is already in stdlib.h). But thanks for thinking about OS/2, too! :-)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Removal of direct.h fixes the build problem. Asking for approval, too, because otherwise there won't be a 1.8a6 for OS/2...
Attachment #170399 - Flags: superreview?
Attachment #170399 - Flags: review?
Attachment #170399 - Flags: approval1.8a6?
Removal of direct.h fixes the build problem. Asking for approval, too, because otherwise there won't be a 1.8a6 for OS/2...
Attachment #170400 - Flags: superreview?(mkaply)
Attachment #170400 - Flags: review?(bsmedberg)
Attachment #170400 - Flags: approval1.8a6?
Attachment #170399 - Flags: superreview?
Attachment #170399 - Flags: review?
Attachment #170399 - Flags: approval1.8a6?
Attachment #170400 - Flags: superreview?(mkaply)
Attachment #170400 - Flags: superreview+
Attachment #170400 - Flags: approval1.8a6?
Attachment #170400 - Flags: approval1.8a6+
doug, how is the current working directory ill-defined? what are the problems with getcwd that you are eluding to?
Attachment #170400 - Flags: review?(bsmedberg)
The OS/2 change was already checked in on 2005-01-06 -> FIXED.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: