[fix] preserve Linux desktop options when restarting after updates

This commit is contained in:
dijunkun committed 2026-10-21 03:16:23 +08:00
1 parent e45350319c
commit ef02ef2e6c
7 files changed
+56 -7

No files matched your search

@@ -68,5 +68,8 @@ void InstallPackage(const fs::path& package, const fs::path&) {
if (Run("/usr/sbin/installer", {"-pkg", package.string(), "-target", "/"}) != 0)
throw std::runtime_error("The macOS installer could not install the update");
}
void Restart(const fs::path&) { Launch("/usr/bin/open", {"/Applications/CrossDesk.app"}); }
std::vector<std::string> RestartArguments() { return {}; }
void Restart(const fs::path&, const std::vector<std::string>&) {
Launch("/usr/bin/open", {"/Applications/CrossDesk.app"});
}
} // namespace crossdesk::updater