AutoDarkMode / AutoDarkMode/Windows-Auto-Night-Mode

Bug: PowerShell script doesn't consistently execute when theme is toggled

Open
#922 6 comments 0 reactions 1 assignee Claimed by @Spiritreader View on GitHub
area-internal
Dominant language
C#
Stars
9.7k
Forks
308
Avg merge
2d 58m
Merged PRs (30d)
3

Description

### Description

### Issue: The script sometimes executes and other times it doesn't.
1. There are no issues with the PowerShell script itself.
2. I'm using only one script for debug.

Below are the relevant log sections from the app's `service.log` log file, split into two parts that represent two theme toggle instances:
1. The first logs the script executing
2. The second doesn't log any attempt at executing the script

### Log Data
Attached
[service.log](https://github.com/user-attachments/files/19206367/service.log)
[scripts.yaml.txt](https://github.com/user-attachments/files/19206385/scripts.yaml.txt)

### Commit Hash, Version and Windows Build

- Commit: `5922db4`
- Service/App: `10.4.2.29`
- Updater: `3.1.6`
- Shell: `1.3.3.0`
- .Net: `8.0.0`
- Windows: `26100.3476`
- Arch: `X64`

### Screenshots / Videos

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.