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

            Bug ID: 425177
           Summary: Dolphin refuses to open .py files located in SFTP
                    folder.
           Product: frameworks-kio
           Version: 5.73.0
          Platform: Archlinux Packages
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: kishor...@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 130746
  --> https://bugs.kde.org/attachment.cgi?id=130746&action=edit
Screenshot of error message (with host name blanked out)

SUMMARY
Dolphin refuses to open a non-executable .py file located in an SFTP folder
when one clicks on the file. (To clarify, I expect it to be opened in Kate, not
executed.) Text files with other extensions (.txt, for example) can be opened
without any problems.

STEPS TO REPRODUCE
1. In settings > configure Dolphin > confirmations, select 'Open in
application'
2. Open an SFTP folder in dolphin
3. Click a .py file to open it
4. Right click on the .py file and select 'open with Kate'

OBSERVED RESULT
After step 3, Dolphin complains that it will not open an executable for safety
reasons if it is on a remote filesystem. Right clicking it to open it in Kate
(step 4) works.

EXPECTED RESULT
If the user has asked Dolphin to open executables in a text editor on clicking,
the warning observed after step 3 shouldn't be shown, since the file isn't
being executed.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.7.12-arch1-1

ADDITIONAL INFORMATION
* I've attached a screenshot of the error message.
* Text files with other extensions (like .txt) can be opened by clicking as
expected.
* The .py file I used doesn't have executable permissions (just 644), so I
don't know why dolphin thinks it's executable.
* Downgrading `kio` to version 5.72 and restarting Dolphin fixes the issue
* I saw that the SFTP part is located in kio-extras, but I'm reporting it here
since downgrading `kio` to version 5.72 fixed the issue (I didn't need to
downgrade `kio-extras`)
* Reproducible on two different remote machines (different servers).

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

Reply via email to