We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c674ab commit 9f046d4Copy full SHA for 9f046d4
1 file changed
Public/Set-DalleImageAsWallpaper.ps1
@@ -2,7 +2,8 @@ function Set-DalleImageAsWallpaper {
2
<#
3
.SYNOPSIS
4
Sets a DALL-E image as the desktop background
5
-
+ .DESCRIPTION
6
+ Sets a DALL-E image as the Windows desktop background
7
.EXAMPLE
8
Set-DalleImageAsBackground "A picture of a cat"
9
@@ -17,6 +18,11 @@ function Set-DalleImageAsWallpaper {
17
18
$Size = 256
19
)
20
21
+ if ($IsMacOS -or $IsLinux) {
22
+ Write-Error "Can only change the wallpaper on Windows"
23
+ return
24
+ }
25
+
26
Add-Type -TypeDefinition @"
27
using System;
28
using System.Runtime.InteropServices;
0 commit comments