mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-16 04:10:04 +10:00
Update bug report and fix no_shortcut
- added a question about the country of the account - fix no_shortcut
This commit is contained in:
+8
-6
@@ -1068,12 +1068,14 @@ if (-not $spotifyInstalled -or $upgrade_client) {
|
||||
while (-not (get-process | Where-Object { $_.ProcessName -eq 'SpotifySetup' })) {}
|
||||
wait-process -name SpotifySetup
|
||||
Stop-Process -Name Spotify
|
||||
if ($no_shortcut) {
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$desktop_folder = DesktopFolder
|
||||
Start-Sleep -Milliseconds 1000
|
||||
remove-item "$desktop_folder\Spotify.lnk" -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
||||
# Delete Spotify shortcut if it is on desktop
|
||||
if ($no_shortcut) {
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$desktop_folder = DesktopFolder
|
||||
Start-Sleep -Milliseconds 1000
|
||||
remove-item "$desktop_folder\Spotify.lnk" -Recurse -Force
|
||||
}
|
||||
|
||||
# Delete the leveldb folder (Fixes bug with incorrect experimental features for some accounts)
|
||||
|
||||
Reference in New Issue
Block a user