Skip to content

Commit

Permalink
fix(theme): use PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jun 13, 2024
1 parent 76f1353 commit 3429101
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ description: Adds and sets the Atlas themes by default
actions:
# Apply theme file
- !taskKill: {name: 'SystemSettings', ignoreErrors: true}
- !cmd:
command: 'explorer "%windir%\Resources\Themes\atlas-v0.4.x-dark.theme" & timeout /t 6 /nobreak > nul'
- !powerShell:
command: >-
Start-Process -FilePath explorer -ArgumentList """$([Environment]::GetFolderPath('Windows'))\Resources\Themes\atlas-v0.4.x-dark.theme""";
Start-Sleep 6
wait: true
runas: currentUser
timeout: 30
runas: currentUserElevated

# For Windows 11, set recent theme selection
- !taskKill: {name: 'SystemSettings', ignoreErrors: true}
Expand Down

0 comments on commit 3429101

Please sign in to comment.