FIX: open new BambuStudio at fixed path

Change-Id: I4ebadf9d27c38243a3cb462c6723e61864169d9c
This commit is contained in:
chunmao.guo 2022-09-07 18:26:02 +08:00 committed by Lane.Wei
parent 04d3917993
commit 605253f61b
2 changed files with 2 additions and 2 deletions

View file

@ -1681,7 +1681,7 @@ void MainFrame::init_menubar_as_editor()
{
#ifdef __APPLE__
// New Window
append_menu_item(fileMenu, wxID_ANY, _L("New Window") + "\tCtrl+N", _L("Start a new window"),
append_menu_item(fileMenu, wxID_ANY, _L("New Window"), _L("Start a new window"),
[](wxCommandEvent&) { start_new_slicer(); }, "", nullptr,
[]{ return true; }, this);
#endif

View file

@ -65,7 +65,7 @@ static void start_new_slicer_or_gcodeviewer(const NewSlicerInstanceType instance
// On Apple the wxExecute fails, thus we use boost::process instead.
BOOST_LOG_TRIVIAL(info) << "Trying to spawn a new slicer \"" << bin_path.string() << "\"";
try {
std::vector<std::string> args = { "-n", "-a", "BambuStudio"};
std::vector<std::string> args = { "-n", "-a", "/Applications/BambuStudio.app"};
if (!paths_to_open.empty()) {
for (const auto& file : paths_to_open)
args.emplace_back(into_u8(file));