desktop: autostart respects Windows Startup apps (turned off there stays off; the Run entry is no longer re-enabled on every start)
This commit is contained in:
parent
da7ca48ab4
commit
53845c6dd9
2 changed files with 47 additions and 3 deletions
|
|
@ -142,3 +142,13 @@ fn background_updater_schedule_and_defer() {
|
|||
assert!(updates::take_kick());
|
||||
assert!(!updates::take_kick());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn startup_apps_choice_is_read_from_startup_approved() {
|
||||
use storebound_desktop::startup_approved_off;
|
||||
let on = "\r\nHKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartupApproved\\Run\r\n storebound REG_BINARY 020000000000000000000000\r\n";
|
||||
let off = "\r\nHKEY_CURRENT_USER\\Run\r\n storebound REG_BINARY 0300000020D1D3B1F0B3DC01\r\n";
|
||||
assert!(!startup_approved_off(on));
|
||||
assert!(startup_approved_off(off));
|
||||
assert!(!startup_approved_off("ERROR: The system was unable to find the specified registry key or value."));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue