Browse Source

Implement OSX-specific method for opening project directory.

Sadly, the wxWidgets one doesn't work.

Fixes: lp:1804937
* https://bugs.launchpad.net/kicad/+bug/1804937
pull/13/head
Jeff Young 7 years ago
parent
commit
c0d713b2d2
  1. 9
      kicad/mainframe.cpp

9
kicad/mainframe.cpp

@ -489,10 +489,19 @@ void KICAD_MANAGER_FRAME::OnBrowseInFileExplorer( wxCommandEvent& event )
// open project directory in host OS's file explorer
wxString project_dir = Prj().GetProjectPath();
#ifdef __WXMAC__
wxString msg;
// Quote in case there are spaces in the path.
msg.Printf( "open \"%s\"", project_dir );
system( msg.c_str() );
#else
// Quote in case there are spaces in the path.
AddDelimiterString( project_dir );
wxLaunchDefaultApplication( project_dir );
#endif
}

Loading…
Cancel
Save