feat(ahk): autoload config on start

When AutoHotKey is detected, and %USERPROFILE%\komorebi.ahk exists,
komorebi.exe will now try to run the ahk script after starting the
command listener.

For this to work smoothly, it is important to set the #SingleInstance
directive to Force in komorebi.ahk, which will ensure that duplicates of
the script are not run, and a new version of the script is loaded
without displaying a GUI confirmation prompt.

resolve #3
This commit is contained in:
LGUG2Z
2021-08-14 07:53:37 -07:00
parent 55b62c2bc9
commit 91ddb2c22b
5 changed files with 31 additions and 1 deletions

12
Cargo.lock generated
View File

@@ -363,6 +363,7 @@ dependencies = [
"tracing-appender",
"tracing-subscriber",
"uds_windows",
"which",
]
[[package]]
@@ -1060,6 +1061,17 @@ version = "0.10.2+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "which"
version = "4.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea187a8ef279bc014ec368c27a920da2024d2a711109bfbe3440585d5cf27ad9"
dependencies = [
"either",
"lazy_static",
"libc",
]
[[package]]
name = "winapi"
version = "0.3.9"