Skip to content

Commit ab7734d

Browse files
author
Your Name
committed
fix: Correct PowerShell toast notification command syntax
1 parent 36c3c64 commit ab7734d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cecli/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ def get_default_notification_command(self):
17101710
# PowerShell toast notification
17111711
return (
17121712
"powershell -command"
1713-
f" \"try {{ Add-Type -AssemblyName System.Runtime.WindowsRuntime; $null = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] }} catch {{}}; "
1713+
f' "try {{ Add-Type -AssemblyName System.Runtime.WindowsRuntime; $null = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] }} catch {{}}; '
17141714
f"$template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02); "
17151715
f"$toastXml = $template.GetXml(); "
17161716
f"$toastXml.GetElementsByTagName('text')[0].AppendChild($template.CreateTextNode('cecli')) > $null; "

0 commit comments

Comments
 (0)