Bug 484918

Summary: Allow passing arguments to custom shortcuts
Product: [Applications] systemsettings Reporter: gudvinr+kde
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: a.skembris, kde, kde
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gudvinr+kde 2024-04-02 11:00:06 UTC
SUMMARY

Currently, if you add script as custom command, you can't run it with additional args.
Which means you must create another scripts that just run your script with different arguments.

It can be made even more convenient if you can group actions for the same script under one entry in custom shortcuts list.

STEPS TO REPRODUCE
1. Create custom command

OBSERVED RESULT
You can't pass arguments since whole string is considered a singular path to script

EXPECTED RESULT
Accept command with arguments

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.6.23-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
There is bug 473163 for adding names to custom commands.
Comment 1 David Edmundson 2024-06-04 11:56:47 UTC
This works as expected in 6.1 beta.