-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong image on a desktop #594
Comments
@Meelee35 Thanks for reporting this! I've just pushed an update to the SyncVirtualDesktops script that fixes an error it could throw about the Nuget package provider failing to install: https://github.com/t1m0thyj/WDD-scripts/blob/master/experimental/SyncVirtualDesktops.ps1 With the latest version of the script, changing the wallpaper across multiple desktops is working fine for me. Could you try installing the updated script and switching between 2 different themes with it enabled? The behavior I'm seeing is that the wallpaper changes on both Desktop 1 and 2. |
Hi! I'm using the latest version of WDD, downloaded from GitHub, along with the SyncVirtualDesktops.ps1 script. The wallpaper doesn't update automatically on the second etc virtual desktop. Tried different themes, no luck. |
After creating multiple virtual desktops, could you try running the following command in a PowerShell terminal and let me know what happens? This is the same method used by the SyncVirtualDesktops.ps1 script. It should set the wallpaper across all virtual desktops to be the default Windows 11 Bloom wallpaper. Get-DesktopList | ForEach-Object { Set-DesktopWallpaper -Desktop $_.Number -Path "C:\Windows\Web\Wallpaper\Windows\img0.jpg" } |
@t1m0thyj When running the above command from your comment I get the following: Get-DesktopList : The 'Get-DesktopList' command was found in the module 'VirtualDesktop', but the module could not be
Then, if I run 'Import-Module VirtualDesktop' in terminal, I get: Import-Module : File
Lastly, by running the 'Get-ExecutionPolicy -List' command, I get: Scope ExecutionPolicy If I change the execution policy to allow running scripts, by running the initial command from your comment I get the following: The type initializer for 'VirtualDesktop.DesktopManager' threw an exception.
|
@treispezeronoua Thanks for the detailed response! Based on the error message, you have v1.5.1 of the PS VirtualDesktop module installed. This version is 2 years old and doesn't support recent builds of Win11. If you have the latest version of SyncVirtualDesktops.ps1, it's supposed to detect when Windows has been updated to a new build and automatically update the VirtualDesktop module for you, but this may not be working as intended. In the "scripts" folder alongside SyncVirtualDesktop.ps1 there should be another file named "SyncVirtualDesktops.dat". Could you please attach the contents of this file if exists? For now manually updating the VirtualDesktop module should fix the problem. In a PowerShell terminal that allows running scripts, run this command to update to the latest version v1.5.8: |
@t1m0thyj Thank you for your reply! I couldn't find the .dat file in the scripts folder, but I managed to get the WDD to sync the wallpaper across virtual desktops. To do that, I deleted VirtualDesktop v1.5.1 and reinstalled it using the 'Install-Module VirtualDesktop' command, which installed v1.5.8. Finally, to test that everything was working as expected, I ran your command, 'Get-DesktopList | ForEach-Object { Set-DesktopWallpaper -Desktop $_.Number -Path "C:\Windows\Web\Wallpaper\Windows\img0.jpg" }'. Thank you for helping me with this! |
@Meelee35 Does the workaround mentioned in #594 (comment) work for you as well? |
Steps to Reproduce:
Are you using the Microsoft Store version of WDD?: Yes/No
No
Desktop 1 displays the correct image for the time of day.
Desktop 2 is stuck on image it was when i last refreshed from the WDD menu on that desktop.
May i also add that using the sync desktop wallpaper script does not work, scripts are enabled.
The text was updated successfully, but these errors were encountered: