Skip to content

Commit

Permalink
Update shortcut_utils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
schm1dtmac committed Sep 27, 2024
1 parent 27b876b commit dfa698f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions rpcs3/rpcs3qt/shortcut_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand All @@ -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)
Expand Down

0 comments on commit dfa698f

Please sign in to comment.