This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247551 - On Mac OS X, terminal working directory defaults to /
Summary: On Mac OS X, terminal working directory defaults to /
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Terminal (show other bugs)
Version: 8.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 11:05 UTC by inonit
Modified: 2014-09-29 13:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sets working directory to ${user.home} if unspecified (838 bytes, patch)
2014-09-29 11:06 UTC, inonit
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description inonit 2014-09-29 11:05:44 UTC
Currently, when starting a terminal on Mac OS X, the current working directory of the terminal is /.

There are two issues proposing locations which the terminal should use as the working directory. Bug 240930 proposes using the project's root directory; bug 198283 proposes the same thing, roughly. Bug 198283 mentions that the user's home directory is used on Linux, which I have not tested.

I do not know the root cause of / being used on Mac OS X; I merely observed the behavior and patched the source to correct it. See attached patch.
Comment 1 inonit 2014-09-29 11:06:54 UTC
Created attachment 149588 [details]
Sets working directory to ${user.home} if unspecified