Fix powershell example command

This commit is contained in:
Albert Vaca Cintora 2024-06-14 14:56:46 +02:00
parent 3d7b849e90
commit 6ae69c89c5
No known key found for this signature in database

View file

@ -47,7 +47,7 @@ RunCommandConfig::RunCommandConfig(QObject *parent, const KPluginMetaData &data,
addSuggestedCommand(
defaultMenu,
i18n("Say Hello"),
QStringLiteral("PowerShell -Command \"Add-Type AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('hello');\""));
QStringLiteral("PowerShell -Command Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('hello');"));
#else
addSuggestedCommand(defaultMenu, i18n("Shutdown"), QStringLiteral("systemctl poweroff"));
addSuggestedCommand(defaultMenu, i18n("Reboot"), QStringLiteral("systemctl reboot"));