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( addSuggestedCommand(
defaultMenu, defaultMenu,
i18n("Say Hello"), 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 #else
addSuggestedCommand(defaultMenu, i18n("Shutdown"), QStringLiteral("systemctl poweroff")); addSuggestedCommand(defaultMenu, i18n("Shutdown"), QStringLiteral("systemctl poweroff"));
addSuggestedCommand(defaultMenu, i18n("Reboot"), QStringLiteral("systemctl reboot")); addSuggestedCommand(defaultMenu, i18n("Reboot"), QStringLiteral("systemctl reboot"));