[kde] [Bug 467380] New: Global Shortcut Command/URL opens in a browser if it has '@'
Deniil
bugzilla_noreply at kde.org
Wed Mar 15 06:40:50 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=467380
Bug ID: 467380
Summary: Global Shortcut Command/URL opens in a browser if it
has '@'
Classification: I don't know
Product: kde
Version: unspecified
Platform: Archlinux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: entityinarray at yandex.ru
Target Milestone: ---
SUMMARY
KDE Plasma's Custom Shortcut system mistakenly opens a command in a
web-browser if it contains '@' character
STEPS TO REPRODUCE
1. Launch System Settings
2. Go to Shortcuts -> Custom Shortcuts
3. Right-click on a shortcut list and click New -> Global Shortcut ->
Command/URL
4. Go to Action tab
5. Enter any command that has "@" in it, for example "pactl set-source-mute
@DEFAULT_SOURCE@ toggle" (without
quotes)
6. Go to Trigger tab and assign a shortcut
7. Hit Apply
8. Press the shortcut you assigned
OBSERVED RESULT
Command gets sent into a default browser as a search query
EXPECTED RESULT
Command is executed via $SHELL
PROPOSED SOLUTION
Having Commands and URL combined into a single thing and relying on some
wonky algorithm that tells apart
Commands from URLs will never work right.
Instead of having Commands and URLs combined into a single thing, it would be
better if we separated them like this:
Command
Executes contents in $SHELL only.
URL
Executes xdg-open on the provided URL only.
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.6-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-4160 CPU @ 3.60GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4400
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: A_F_K31ADE
Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list