mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-13 20:25:53 +08:00
[fix] preserve Linux desktop options when restarting after updates
This commit is contained in:
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
|
||||
Reference in new issue
Block a user