https://bugs.kde.org/show_bug.cgi?id=440107
Bug ID: 440107 Summary: Custom Shortcuts failed to start commands with relative path and arguments Product: frameworks-kglobalaccel Version: 5.84.0 Platform: Ubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kdelibs-b...@kde.org Reporter: mur...@gmail.com Target Milestone: --- SUMMARY When I configuring action to run command in KDE Custom Shortcuts interface with relative path, starting from $HOME and with arguments - it fails to start. With absolute path OR without arguments - all works well! STEPS TO REPRODUCE 1. Create some executable test file in home folder, eg `~/bin/test-cmd.sh` with contents: ``` #!/bin/bash kdialog --msgbox "Launched with arg 1: $1!" ``` 2. In KDE Custom Shortcuts settings create a new global shortcut with command "/home/USERNAME/bin/test-cmd.sh my-arg1" Test that it works successfully. 3. Replace command path to relative: "~/bin/test-cmd.sh my-arg1" and launch again. You will see the error message: ``` Unable to run the command specified. The file or folder /home/USERNAME/bin/test-cmd.sh my-arg1 does not exist. ``` 4. Remove argument from command text "~/bin/test-cmd.sh" and launch again - it will executed successfully! EXPECTED RESULT Command with relative path and arguments should be launched successfully, like with full path. SOFTWARE/OS VERSIONS Operating System: Kubuntu 21.04 KDE Plasma Version: 5.22.3 KDE Frameworks Version: 5.84.0 Qt Version: 5.15.2 Kernel Version: 5.11.0-25-generic (64-bit) Graphics Platform: X11 -- You are receiving this mail because: You are watching all bug changes.