File tree Expand file tree Collapse file tree 6 files changed +26
-13
lines changed
AtlasDesktop/3. General Configuration/AI Features/Microsoft Copilot Expand file tree Collapse file tree 6 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,12 @@ while ($true) { Get-Content -Wait -LiteralPath $a -EA 0 | Write-Output; Start-Sl
214214 Pop-Location
215215 }
216216
217+ # Stupid hack because "The process cannot access the file because it is being used by another process." happens now and I have no idea why
218+ $apbxTmpPath = $apbxPath + ' .tmp'
219+ if (Test-Path $apbxTmpPath ) {
220+ Remove-Item - Path $apbxPath
221+ Rename-Item - Path $apbxTmpPath - NewName $apbxPath
222+ }
217223 Write-Host " Built successfully! Path: `" $apbxPath `" " - ForegroundColor Green
218224 if (! $DontOpenPbLocation ) {
219225 if ($IsLinux -or $IsMacOS ) {
@@ -230,4 +236,4 @@ while ($true) { Get-Content -Wait -LiteralPath $a -EA 0 | Write-Output; Start-Sl
230236} finally {
231237 Remove-Item $rootTemp - Force - EA 0 - Recurse | Out-Null
232238 if ($currentDir ) { Set-Location $currentDir }
233- }
239+ }
Original file line number Diff line number Diff line change 11---
22title : Add Theme
33description : Adds and sets the Atlas themes by default
4- onUpgrade : false
54actions :
65 # Apply theme file and set recent themes
6+ - !powerShell:
7+ command : |
8+ .\AtlasModules\initPowerShell.ps1
9+ Set-ThemeMRU
10+ wait : true
11+ onUpgrade : true
12+ oobe : false
13+ exeDir : true
14+ runas : curretUserElevated
15+
716 - !powerShell:
817 command : |
918 .\AtlasModules\initPowerShell.ps1
1019 Set-Theme -Path """$([Environment]::GetFolderPath('Windows'))\Resources\Themes\atlas-v0.4.x-dark.theme"""
1120 Set-ThemeMRU
1221 wait : true
22+ onUpgrade : false
1323 exeDir : true
1424 runas : currentUserElevated
1525
@@ -20,32 +30,36 @@ actions:
2030 value : ' LockScreenOverlaysDisabled'
2131 data : ' 1'
2232 type : REG_DWORD
33+ onUpgrade : false
2334 - !registryValue:
2435 path : ' HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager'
2536 value : ' RotatingLockScreenEnabled'
2637 data : ' 0'
2738 type : REG_DWORD
28-
39+ onUpgrade : false
2940 - !powerShell:
3041 command : |
3142 foreach ($userKey in (Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative").PsPath) {
3243 Set-ItemProperty -Path $userKey -Name 'RotatingLockScreenEnabled' -Type DWORD -Value 0 -Force
3344 }
3445 exeDir : true
3546 wait : true
47+ onUpgrade : false
3648 - !powerShell:
3749 command : |
3850 .\AtlasModules\initPowerShell.ps1
3951 Set-LockscreenImage
4052 exeDir : true
4153 wait : true
4254 runas : currentUserElevated
55+ onUpgrade : false
4356
4457 # Set Atlas theme as default for new users
4558 - !registryValue:
4659 path : ' HKCU\Software\Policies\Microsoft\Windows\Personalization'
4760 value : ' ThemeFile'
4861 data : ' %windir%\Resources\Themes\atlas-v0.4.x-dark.theme'
4962 type : REG_SZ
63+ onUpgrade : true
5064
5165
Original file line number Diff line number Diff line change 66 # PowerShell commands used:
77 # [BitConverter]::ToString($(Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name "FavoritesResolve").FavoritesResolve) -replace '-' | clip
88 # [BitConverter]::ToString($(Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name "Favorites").Favorites) -replace '-' | clip
9-
10- - !taskKill: {name: 'explorer'}
11-
129 # Config pins
1310 - !registryKey:
1411 path : ' HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
@@ -79,5 +76,4 @@ actions:
7976 option : ' browser-librewolf'
8077 exeDir : true
8178 oobe : false
82- wait : true
83- - !run: {exe: 'explorer.exe', runas: 'currentUser', wait: true}
79+ wait : true
Original file line number Diff line number Diff line change @@ -39,6 +39,4 @@ foreach ($path in $RegistryPaths) {
3939 }
4040 }
4141 }
42- }
43- Remove-Module " FXPSYaml" - Force
44- # Unload DefaultUser hive
42+ }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ start explorer.exe
2828
2929if " %~1 " == " /silent" exit /b
3030
31- echo]
31+ echo .
3232echo Finished, changes are applied.
3333echo Press any key to exit...
3434pause > nul
Original file line number Diff line number Diff line change @@ -112,5 +112,4 @@ foreach ($userKey in (Get-RegUserPaths -NoDefault).PsPath) {
112112 }
113113 }
114114}
115-
116115Stop-Process - Name explorer - Force
You can’t perform that action at this time.
0 commit comments