From 37d2317b681b9f4cdfa1ef7b7303b455b530d978 Mon Sep 17 00:00:00 2001 From: schm1dtxbox <36817325+schm1dtxbox@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:45:37 +0100 Subject: [PATCH] Update shortcut_utils.cpp --- rpcs3/rpcs3qt/shortcut_utils.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rpcs3/rpcs3qt/shortcut_utils.cpp b/rpcs3/rpcs3qt/shortcut_utils.cpp index c575b8117d..1c9a3d759f 100644 --- a/rpcs3/rpcs3qt/shortcut_utils.cpp +++ b/rpcs3/rpcs3qt/shortcut_utils.cpp @@ -222,14 +222,6 @@ namespace gui::utils return cleanup(true, {}); #elif defined(__APPLE__) - - const std::string app_bundle_path = fs::get_executable_path(); - if (app_bundle_path.empty()) - { - sys_log.error("Failed to create shortcut. App bundle path empty."); - return false; - } - fmt::append(link_path, "/%s.app", simple_name); const std::string contents_dir = link_path + "/Contents/"; @@ -246,7 +238,7 @@ namespace gui::utils const std::string launcher_path = macos_dir + "launcher"; std::string launcher_content; - fmt::append(launcher_content, "#!/bin/bash\nopen \"%s\" --args %s", app_bundle_path, target_cli_args); + fmt::append(launcher_content, "#!/bin/bash\nopen -b net.rpcs3.rpcs3 --args %s", target_cli_args); fs::file launcher_file(launcher_path, fs::read + fs::rewrite); if (!launcher_file)