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

            Bug ID: 437880
           Summary: confusing error when adding a startup application
                    that's not executable
           Product: systemsettings
           Version: 5.21.5
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: kcm_autostart
          Assignee: nicolas.fe...@gmx.de
          Reporter: skierp...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
I created a script to run a program. When I went to + Add Application and
browsed to it, I got an error alert "not found, please type a valid program
name". Eventually I realized I had forgotten to make the script executable

STEPS TO REPRODUCE
1. Create a simple script, e.g. 
        #!/bin/sh
        echo "STDOUT from $0 : hello"

2. Save the file as /tmp/start_test.sh but don't make it executable.
3. Run System Settings > Startup and Shutdown > Autostart
4. Choose + Add... > + Add Application..., browse to the script, click [OK]

OBSERVED RESULT
You get an error alert
    '/tmp/start_test.sh' not found, please type a valid program name.
The workaround, obvious to more expert users, is `chmod a+x
/path/to/script.sh`.

EXPECTED RESULT
The script was obviously found, but it's not valid because it's not executable.
The alert text (from
https://invent.kde.org/frameworks/kio/-/blob/master/src/widgets/kopenwithdialog.cpp#L1009
) should be something like
    "'%1' not found or is not executable , please type a valid program name."
or
    "'%1' is not an executable file, please type a valid program name."

Other things that would help, also in frameworks/kio which presents this
KOpenWithDialog:
* the file browser could gray out non-executable programs so you see them but
can't choose them
* the file browser could show permissions in a column


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2 64-bit, Wayland

ADDITIONAL INFORMATION
Maybe the bug is in kio not this KCM, but I'm not sure where else kio's
KOpenWithDialog() is used.

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

Reply via email to