Skip to content

Commit 9f046d4

Browse files
author
James Brundage
committed
Set-DalleImageAsWallpaper: Minor Help Fixes, checking for Windows (Fixes #56)
1 parent 0c674ab commit 9f046d4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Public/Set-DalleImageAsWallpaper.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ function Set-DalleImageAsWallpaper {
22
<#
33
.SYNOPSIS
44
Sets a DALL-E image as the desktop background
5-
5+
.DESCRIPTION
6+
Sets a DALL-E image as the Windows desktop background
67
.EXAMPLE
78
Set-DalleImageAsBackground "A picture of a cat"
89
@@ -17,6 +18,11 @@ function Set-DalleImageAsWallpaper {
1718
$Size = 256
1819
)
1920

21+
if ($IsMacOS -or $IsLinux) {
22+
Write-Error "Can only change the wallpaper on Windows"
23+
return
24+
}
25+
2026
Add-Type -TypeDefinition @"
2127
using System;
2228
using System.Runtime.InteropServices;

0 commit comments

Comments
 (0)