Bug 491659

Summary: Dolphin doesn't recognize type of files without extensions on sshfs
Product: [Applications] dolphin Reporter: xezo360hye <xezo360hye>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, xezo360hye
Priority: NOR    
Version: 24.05.2   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Comparison of how the same PDF file on local storage and sshfs are shown in Dolphin

Description xezo360hye@gmail.com 2024-08-13 10:23:10 UTC
Created attachment 172578 [details]
Comparison of how the same PDF file on local storage and sshfs are shown in Dolphin

SUMMARY
Dolphin doesn't recognize type of files without extensions on sshfs (possibly other remote connections too, will try later). Previews unavailable, "Type: Unknown" in properties, doesn't know how to open them

STEPS TO REPRODUCE
1. Mount a remote directory using sshfs (works with both manual mounting and fstab)
2. Open the remote directory in dolphin, drop some files without extensions there
3. Notice how they don't have previews and opening them prompts for app
4. Add back original file extension and see how opening works fine now

OBSERVED RESULT
Dolphin shows the "?" icon and doesn't know how to open files on sshfs

EXPECTED RESULT
File type icons or previews are shown and files open in default apps

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS unstable
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I checked how pcmanfm, pcmanfm-qt and thunar work with sshfs and they appear to do what is expected, file types recognized, previews available where set up and opening works too