https://bugs.kde.org/show_bug.cgi?id=514340

            Bug ID: 514340
           Summary: krunner can't execute arbitrary linux commands or
                    scripts
    Classification: Plasma
           Product: krunner
      Version First 6.5.4
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

SUMMARY
Maybe krunner is application runner first, but the "run dialog" in all Linux
systems is always used to run commands and scripts also. I remember Mint,
Debian, etc.
I'm back to KDE Plasma and I found the krunner behaviour very strange and
difficult to use.

STEPS TO REPRODUCE
1. create a script in your home/bin folder (must be in the PATH variable and +x
attribute set), i.e. /home/user/bin/doc
2. press ALT+F2 (or execute krunner)
3. enter "doc"

OBSERVED RESULT
You will never see your scripts, and if you press the ENTER key you will be
execute a random application or resource (depending on your configuration and
addons installed). You can obtain Documents, a file that contains doc in the
name, skanpage, okular, documentation center, qt assistant, places, a music
file, a video file, etc.

EXPECTED RESULT
Avoid to select the first match automatically and, if ENTER pressed and no
selection made, the exact command entered should use instead, including spaces,
parameters, slashes, dots, etc.
If you enter extra parameters on your script (i.e. "doc -f"), you will never be
able to execute it properly because parameters are always cleared.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.2-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 255 w/ Radeon 780M Graphics
Memory: 64 GiB of RAM (58.6 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics

ADDITIONAL INFORMATION
This is a bug because on KDE there is no way to enter e command without go to
terminal. I use many scripts and shortcut, use the mouse or cursor to scroll
down and read the screen every time is frustrating.
If I enter a command, the system must execute that command and not any
application on the top of my list (cache, last used, etc).
The execution of command if none selected is the correct approach, maybe under
configuration.

I suggest to add a general configuration on file ~/.config/krunnerrc: 

[General]
preselectFirstMatch=false

1. if option enabled, no match selection by default and I need to press DOWN
arrow to select the first one
2. if option disabled, first line will be always selected and the ENTER key
will open that application/place/document

I read documentation but I can't found this feature, let me know if there
already such configuration options.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to