Closed
Bug 276592
Opened 20 years ago
Closed 20 years ago
NS_OS_CURRENT_WORKING_DIR is not implemented
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(3 files)
7.07 KB,
patch
|
darin.moz
:
review+
|
Details | Diff | Splinter Review |
539 bytes,
patch
|
Details | Diff | Splinter Review | |
539 bytes,
patch
|
mkaply
:
superreview+
mkaply
:
approval1.8a6+
|
Details | Diff | Splinter Review |
For the directory service, NS_OS_CURRENT_WORKING_DIR either was never
implemented, or the impl got removed when xpcom-obsolete was split off.
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #169987 -
Flags: review?(darin)
Updated•20 years ago
|
Attachment #169987 -
Flags: review?(darin) → review+
Comment 2•20 years ago
|
||
dougt: was NS_OS_CURRENT_WORKING_DIR perhaps removed for a reason?
Comment 3•20 years ago
|
||
NS_OS_CURRENT_WORKING_DIR isn't a very well defined place xp.
Assignee | ||
Comment 4•20 years ago
|
||
What's not well-defined about it? The current working dir is pretty standard,
no? We're just reflecting getcwd() into XPCOM.
Assignee | ||
Comment 5•20 years ago
|
||
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 6•20 years ago
|
||
what is the cwd of a application launched from the desktop?
Comment 7•20 years ago
|
||
(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.)
Comment 8•20 years ago
|
||
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?
Assignee | ||
Comment 9•20 years ago
|
||
Map command-line arguments. See bug 276588.
Comment 10•20 years ago
|
||
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 → ---
Comment 11•20 years ago
|
||
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?
Comment 12•20 years ago
|
||
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?
Updated•20 years ago
|
Attachment #170399 -
Flags: superreview?
Attachment #170399 -
Flags: review?
Attachment #170399 -
Flags: approval1.8a6?
Updated•20 years ago
|
Attachment #170400 -
Flags: superreview?(mkaply)
Attachment #170400 -
Flags: superreview+
Attachment #170400 -
Flags: approval1.8a6?
Attachment #170400 -
Flags: approval1.8a6+
Comment 13•20 years ago
|
||
doug, how is the current working directory ill-defined? what are the problems
with getcwd that you are eluding to?
Updated•20 years ago
|
Attachment #170400 -
Flags: review?(bsmedberg)
Comment 14•20 years ago
|
||
The OS/2 change was already checked in on 2005-01-06 -> FIXED.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•