Bug 417328

Summary: Kate does not declare supported file types on macOS
Product: [Applications] kate Reporter: Jan Przybylak <jplx256>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 19.12.2   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: "Open With" dialog of a .txt file. Kate should be listed here.
Kate's info.plist
For comparison, info.plist of TextEdit (the default text editor on the Mac)

Description Jan Przybylak 2020-02-09 10:24:44 UTC
Created attachment 125778 [details]
"Open With" dialog of a .txt file. Kate should be listed here.

SUMMARY
On macOS, Kate does not declare which file types it supports. The result is that it does not appear in the "Open with" menu (see attachment) of files that it supports, so it needs to be manually selected from the Applications folder, which of course is a lot more cumbersome and time-consuming.

According to this
https://stackoverflow.com/questions/19693311/associating-a-file-extension-with-my-application
file types can be declared in `info.plist`

STEPS TO REPRODUCE
1. Choose a file Kate supports, ideally a simple plaintext file
2. Right click -> open with
3. Kate isn't in the list

OBSERVED RESULT
Kate is not listed as an option to open a file with

EXPECTED RESULT
Kate should be listed

SOFTWARE/OS VERSIONS
macOS: 10.14.6
Kate: 19.12.2

ADDITIONAL INFORMATION
I used the compiled version that can be downloaded from kate-editor.org
Comment 1 Jan Przybylak 2020-02-09 10:25:17 UTC
Created attachment 125779 [details]
Kate's info.plist
Comment 2 Jan Przybylak 2020-02-09 10:25:52 UTC
Created attachment 125780 [details]
For comparison, info.plist of TextEdit (the default text editor on the Mac)
Comment 3 Christoph Cullmann 2020-02-09 14:57:36 UTC
Could you update our plist variant?

https://invent.kde.org/kde/kate/blob/master/kate/data/MacOSXBundleInfo.plist.in

You can either hand in the file here as attachment or create a merge request, whatever suites you best.