FIX: [STUDIO-2099] fix start new instance with renamed app

Change-Id: Ic4ee24c3980f02d436ebf32c2b5c63cb34f3803e
(cherry picked from commit e4c2ff2a442253832b44bcd5e9e0ac40980cfcee)
This commit is contained in:
chunmao.guo 2023-01-29 09:54:17 +08:00 committed by Lane.Wei
parent 7fe0ee091f
commit ee0f3c7a2f
1 changed files with 1 additions and 1 deletions

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", "/Applications/BambuStudio.app"};
std::vector<std::string> args = { "-n", "-a", "BambuStudio.app"};
if (!paths_to_open.empty()) {
for (const auto& file : paths_to_open)
args.emplace_back(into_u8(file));