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

Summary: On Mac OS X, terminal working directory defaults to /
Product: contrib Reporter: inonit <inonit>
Component: TerminalAssignee: Andrei Badea <abadea>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Sets working directory to ${user.home} if unspecified

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