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

            Bug ID: 428196
           Summary: kconf_update reports “did not terminate within 60
                    seconds“, when a Script= entry misses the interpreter
                    argument.
           Product: frameworks-kconfig
           Version: 5.74.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
Script= can run both interpreted scripts and executable binaries. For scripts,
the Script= entry requires the <interpreter> parameter, or the script file
needs to be executable and have the shebang (#!/usr/bin/env python3).

If the Script= doesn’t have the <interpreter> parameter, and the script file is
not executable, kconf_update directly reports that the script didn’t terminate.
This is misleading.


STEPS TO REPRODUCE
1. Create an update file like this:
> Version=5
> Id=some-update
> File=demorc
> Script=demo.py
2. Put demo.py in the data folder, but clear the executable flag.
3. Run kconf_update on this update file


OBSERVED RESULT
> update script did not terminate within 60 seconds:
> "/home/david/.qttest/share/kconf_update/demo.py"

EXPECTED RESULT
> update application is not an executable file:
> /home/david/.qttest/share/kconf_update/demo.py

SOFTWARE/OS VERSIONS
Qt Version: 5.15.0

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

Reply via email to