mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-09 17:06:24 +08:00
[fix] apply Windows daemon settings immediately
Add a runtime watchdog with Unicode process launch and session-end handling. Report autostart save failures and document the updated Windows behavior. Validated with a Windows Release build, daemon and autostart integration checks, GUI crash recovery, tray exit, real logoff/login, and full reboot/login.
This commit is contained in:
@@ -504,6 +504,12 @@ function setup_targets()
|
||||
add_defines("CROSSDESK_PORTABLE=1")
|
||||
end
|
||||
add_files("apps/desktop/tests/windows_autostart_test.cpp")
|
||||
|
||||
target("windows_runtime_daemon")
|
||||
set_kind("static")
|
||||
add_includedirs("apps/desktop/src", {public = true})
|
||||
add_files("apps/desktop/src/platform/windows/runtime_daemon.cpp")
|
||||
add_syslinks("User32", "Shell32", {public = true})
|
||||
end
|
||||
|
||||
target("config_center")
|
||||
@@ -511,6 +517,8 @@ function setup_targets()
|
||||
add_deps("rd_log", "autostart")
|
||||
if is_os("linux") then
|
||||
add_deps("linux_runtime_daemon")
|
||||
elseif is_os("windows") then
|
||||
add_deps("windows_runtime_daemon")
|
||||
end
|
||||
add_files("apps/desktop/src/config_center/*.cpp")
|
||||
add_includedirs("apps/desktop/src", "apps/desktop/src/config_center",
|
||||
|
||||
Reference in New Issue
Block a user