Skip to content

Commit dd6dd51

Browse files
erdemgokselerdemgoksel
authored andcommitted
Switch Windows service install to user session scheduled task
Replaces the Windows service installation with a scheduled task that runs in the user's session, enabling proper user idle detection. Updates install.ps1 to remove service management and add scheduled task logic, updates documentation and output messages, and adds the 'windows' crate dependency for future user session support. Adds warnings to windows_service.rs about idle detection limitations when running as a Windows service.
1 parent ac96915 commit dd6dd51

File tree

4 files changed

+188
-96
lines changed

4 files changed

+188
-96
lines changed

Cargo.lock

Lines changed: 70 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ user-idle2 = { git = "https://github.com/ErdemGKSL/user-idle2-rs.git", features
3636

3737
[target.'cfg(windows)'.dependencies]
3838
windows-service = { version = "0.7", optional = true }
39+
windows = { version = "0.58", features = ["Win32"] }
3940

4041
[features]
4142
windows-service = ["dep:windows-service"]

0 commit comments

Comments
 (0)