Skip to content

Commit

Permalink
fix(notifs): delay before explorer, enable services
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 6, 2024
1 parent db45c40 commit bff6af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/playbook/Executables/DISABLENOTIFS.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ for /f "tokens=5 delims=\" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Ser
:: Apply changes
taskkill /f /im explorer.exe > nul 2>&1
taskkill /f /im ShellExperienceHost.exe > nul 2>&1
timeout /t 3 /nobreak > nul
tasklist | find "explorer.exe" > nul || start explorer.exe

echo Disabled notifications.
4 changes: 4 additions & 0 deletions src/playbook/Executables/ENABLENOTIFS.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ for %%a in (
call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide %%~a /silent
)

:: Enable services
call "%windir%\AtlasModules\Scripts\setSvc.cmd" "WpnUserService" 2
sc config WpnService start=auto > nul

:: Apply changes
taskkill /f /im explorer.exe > nul 2>&1
taskkill /f /im ShellExperienceHost.exe > nul 2>&1
timeout /t 3 /nobreak > nul
tasklist | find "explorer.exe" > nul || start explorer.exe

echo Enabled notifications.

0 comments on commit bff6af6

Please sign in to comment.