Skip to content
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

Slideshow wallpapers #41

Closed
XFox111 opened this issue Mar 10, 2024 · 2 comments
Closed

Slideshow wallpapers #41

XFox111 opened this issue Mar 10, 2024 · 2 comments

Comments

@XFox111
Copy link

XFox111 commented Mar 10, 2024

Is there a way to use this module to set a slideshow wallpaper for VDs?

I've tried to specify path to a folder instead of a specific picture with following commands:

Set-DesktopWallpaper -Desktop 1 -Path "C:\Users\[redacted]\OneDrive\Pictures\Wallpapers\"
Set-AllDesktopWallpapers -Path "C:\Users\[redacted]\OneDrive\Pictures\Wallpapers\"

The first command didn't yield any errors, but upon switching to this desktop, it uses the first picture from the folder and there's a glitch during switching animation when it shows folder's thumbnail as a wallpaper

Screenshot (click to expand)

2024-03-10

And the second command throws an exception:

MethodInvocationException: C:\Users\eugen\OneDrive\Documents\PowerShell\Modules\VirtualDesktop\1.5.7\VirtualDesktop.ps1:2026
Line |
2026 |              [VirtualDesktop.Desktop]::SetAllWallpaperPaths($Path)
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "SetAllWallpaperPaths" with "1" argument(s): "Value does not fall within the expected range."
@MScholtes
Copy link
Owner

Hello @XFox111,

setting a slideshow wallpaper is no "virtual desktop" setting since it applies to the whole desktop. For this reason there is no virtual desktop API function to achieve this.
Please search the internet, there are several examples to change the wallpaper with Powershell.

Greetings

Markus

@XFox111
Copy link
Author

XFox111 commented Mar 10, 2024

Ah, I see. I figured that if there's an API to change static wallpapers for each VD, then there should be an API to set a slideshow folder for each VD as well

@XFox111 XFox111 closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants