Page 1 of 1

New menu items: Go > Darwin Directories (submenu)

Posted: Thu Dec 03, 2020 3:37 pm
by JayB
In NC's "Go" menu, it would be really cool to have a menu item "Darwin Directories", which is a submenu containing links to:
  • DARWIN_USER_DIR
  • DARWIN_USER_TEMP_DIR
  • DARWIN_USER_CACHE_DIR
The menu would then look something like this:

Code: Select all

Go
---dropdown---
Left Panel…
...
Processes List
---separator---
Darwin Directories
└── User
└── User Temp
└── User Cache
---separator---
Favorites
└── ...
...
You can get these yourself in Terminal with

Code: Select all

getconf DARWIN_USER_DIR
getconf DARWIN_USER_TEMP_DIR
getconf DARWIN_USER_CACHE_DIR
…so in principle it would be possible to just create three small scripts (NC tools) to run those commands and open these directories in NC, but having some dedicated fixed commands would also be nice.

Posssible?

Re: New menu items: Go > Darwin Directories (submenu)

Posted: Fri Dec 04, 2020 2:01 pm
by mike
I'm not sure how is this different from Favourites?

Re: New menu items: Go > Darwin Directories (submenu)

Posted: Fri Dec 04, 2020 10:31 pm
by JayB
Afaik the paths of the Darwin directories are not static, i.e. they're changed by macOS at every boot (or login?), so during app launch NC would have to run three commands to get the current Darwin dir paths for the current session, and direct the menu items to those paths. (But yes, if they were fixed paths, it would be easily covered by the Favorites functionality.)