AutoDarkMode / Windows-Auto-Night-Mode

Automatically switches between the dark and light theme of Windows 10 and Windows 11
GNU General Public License v3.0
7.34k stars 261 forks source link

Wallpaper of light mode is applied for split second and then dark wallpaper is reapplied #847

Closed D1339F9 closed 4 months ago

D1339F9 commented 4 months ago

Description

When the option for wallpaper switching is enabled, switching from dark to light only applies the light wallpaper for a split second and then reapplies the dark wallpaper. Using Windows 11 23H2 on Asus Tuf A16. On Windows 11 21H2 on HP Zbook, this works fine.

Expected Behavior

Light mode wallpaper should be applied permanently

Log Data

2024-05-12 22:35:28 | Info | Program.Main: commit hash: cf7a0fe, build: 10.4.1.1 2024-05-12 22:35:28 | Info | Program.Main: cwd: C:\Users\cb3Du\AppData\Local\Programs\AutoDarkMode\adm-app\AutoDarkModeSvc.exe 2024-05-12 22:35:28 | Info | ThemeFile.SyncWithActiveTheme: theme used for syncing is ADMTheme, path: C:\Users\cb3Du\AppData\Local\Microsoft\Windows\Themes\ADMTheme.theme 2024-05-12 22:35:28 | Info | AsyncPipeServer.Loop: started npipe server with 5 workers (single in, multi out), request: admpipe_request_cb3du 2024-05-12 22:35:28 | Info | ComponentManager..ctor: current windows build: 22631.3527 2024-05-12 22:35:28 | Info | ComponentManager..ctor: using apps and system components for newer builds 19044 and up 2024-05-12 22:35:28 | Info | ComponentManager..ctor: using wallpaper component for windows builds 22621.1105 and up 2024-05-12 22:35:28 | Info | ComponentManager..ctor: using colorization and cursor switcher for newer builds 19044 and up 2024-05-12 22:35:28 | Info | MessageParser.Parse: signal received: request for running status 2024-05-12 22:35:28 | Info | SystemEventHandler.RegisterThemeEvent: enabling event handler for dark mode on battery state discharging 2024-05-12 22:35:28 | Info | MessageParser.Parse: signal received: validate autostart entries 2024-05-12 22:35:28 | Info | SystemEventHandler.RegisterResumeEvent: enabling theme refresh at system unlock (win 11) 2024-05-12 22:35:28 | Info | TaskSchdHandler.GetLogonTask: logon task folder does not exist 2024-05-12 22:35:30 | Info | MessageParser.Parse: signal recevied: get autostart state 2024-05-12 22:35:41 | Info | MessageParser.Parse: signal recevied: get autostart state 2024-05-12 22:36:45 | Info | Service.ForceMode: ui signal received: forcing light theme 2024-05-12 22:36:45 | Info | ComponentManager.GetComponentsToUpdate: components queued for update: [AppsSwitchThemeFile, SystemSwitchThemeFile, WallpaperSwitchThemeFile] 2024-05-12 22:36:45 | Info | WallpaperSwitch.LogHandleSwitch: update info - previous: Unknown/Fill, now: Light/Fill, mode: Fill, type: Global 2024-05-12 22:36:45 | Info | ThemeFile.SyncWithActiveTheme: theme used for syncing is ADMTheme, path: C:\Users\cb3Du\AppData\Local\Microsoft\Windows\Themes\ADMTheme.theme 2024-05-12 22:36:45 | Info | AppsSwitchThemeFile.HandleSwitch: update info - previous: Dark, pending: Light, mode: Switch 2024-05-12 22:36:45 | Info | SystemSwitchThemeFile.SwitchSystemTheme: update info - previous: Dark/NoAccent, pending: Light/NoAccent, mode: Switch, accent: no 2024-05-12 22:36:45 | Info | ThemeManager.UpdateTheme: dwm management: requested standard refresh will be performed by component(s) in queue 2024-05-12 22:36:45 | Info | Tm2Handler.SetTheme: applied theme ADMTheme, from origin: C:\Users\cb3Du\AppData\Local\Microsoft\Windows\Themes\ADMTheme.theme directly via IThemeManager2 2024-05-12 22:36:45 | Info | ThemeManager.UpdateTheme: light theme switch performed, source: Manual 2024-05-12 22:36:53 | Info | Service.ForceMode: ui signal received: stop forcing specific theme 2024-05-12 22:36:56 | Info | Service.ForceMode: ui signal received: forcing dark theme 2024-05-12 22:36:56 | Info | ComponentManager.GetComponentsToUpdate: components queued for update: [AppsSwitchThemeFile, SystemSwitchThemeFile, WallpaperSwitchThemeFile] 2024-05-12 22:36:56 | Info | WallpaperSwitch.LogHandleSwitch: update info - previous: Light/Fill, now: Dark/Fill, mode: Fill, type: Global 2024-05-12 22:36:56 | Info | ThemeFile.SyncWithActiveTheme: theme used for syncing is ADMTheme, path: C:\Users\cb3Du\AppData\Local\Microsoft\Windows\Themes\ADMTheme.theme 2024-05-12 22:36:56 | Info | AppsSwitchThemeFile.HandleSwitch: update info - previous: Light, pending: Dark, mode: Switch 2024-05-12 22:36:56 | Info | SystemSwitchThemeFile.SwitchSystemTheme: update info - previous: Light/NoAccent, pending: Dark/NoAccent, mode: Switch, accent: no 2024-05-12 22:36:56 | Info | ThemeManager.UpdateTheme: dwm management: requested standard refresh will be performed by component(s) in queue 2024-05-12 22:36:57 | Info | Tm2Handler.SetTheme: applied theme ADMTheme, from origin: C:\Users\cb3Du\AppData\Local\Microsoft\Windows\Themes\ADMTheme.theme directly via IThemeManager2 2024-05-12 22:36:57 | Info | ThemeManager.UpdateTheme: dark theme switch performed, source: Manual 2024-05-12 22:36:59 | Info | Service.Exit: exiting service 2024-05-12 22:36:59 | Info | Program.Main: service shutdown successful

Commit Hash, Version and Windows Build

Screenshots / Videos

No response

Armin2208 commented 4 months ago

Fixed in beta version, we will release an update end of next month.

D1339F9 commented 4 months ago

Fixed in beta version, we will release an update end of next month.

Is it possible to force update to beta? I selected beta channel and tried updating via settings and shell but won't work.

D1339F9 commented 4 months ago

Updater log file: 2024-05-13 08:29:12 [INFO] [adm_updater_rs] auto dark mode updater 3.1.4 2024-05-13 08:29:12 [INFO] [adm_updater_rs] cwd: C:\Program Files (x86)\AutoDarkMode 2024-05-13 08:29:12 [INFO] [adm_updater_rs] restart app: false, restart shell: false 2024-05-13 08:29:12 [INFO] [adm_updater_rs] currently installed version: 10.4.1.1 2024-05-13 08:29:12 [INFO] [adm_updater_rs] stopping service gracefully 2024-05-13 08:29:13 [INFO] [adm_updater_rs] waiting for service to stop 2024-05-13 08:29:14 [INFO] [adm_updater_rs] adm has exited successfully 2024-05-13 08:29:14 [INFO] [adm_updater_rs] moving current installation to temp directory 2024-05-13 08:29:14 [ERROR] [adm_updater_rs] error moving current installation to temp directory, aborting patch: The system cannot find the path specified. (os error 3) 2024-05-13 08:29:14 [INFO] [adm_updater_rs] starting service

Armin2208 commented 4 months ago

Hi! Sorry, Auto Dark Mode Updater currently does not support updating installations in the Program Files folder for all user.

D1339F9 commented 4 months ago

Hi! Sorry, Auto Dark Mode Updater currently does not support updating installations in the Program Files folder for all user.

Thanks! Reinstalled for this user only and it immediately updated to release 10.4.2.20. Switching themes seems to work fine now!