[fix] preserve Linux desktop options when restarting after updates

This commit is contained in:
dijunkun
2026-10-21 03:16:23 +08:00
parent e45350319c
commit ef02ef2e6c
7 changed files with 56 additions and 7 deletions
@@ -274,7 +274,10 @@ void RestoreServices() {
CloseServiceHandle(manager);
}
void Restart(const fs::path& application) { Launch(application, {}); }
std::vector<std::string> RestartArguments() { return {}; }
void Restart(const fs::path& application, const std::vector<std::string>&) {
Launch(application, {});
}
std::shared_ptr<void> PinHelper(const fs::path& helper) {
HANDLE handle = CreateFileW(helper.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr,