Bug 417328 - Kate does not declare supported file types on macOS
Summary: Kate does not declare supported file types on macOS
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 19.12.2
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-09 10:24 UTC by Jan Przybylak
Modified: 2020-02-09 16:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
"Open With" dialog of a .txt file. Kate should be listed here. (664.23 KB, image/png)
2020-02-09 10:24 UTC, Jan Przybylak
Details
Kate's info.plist (149.79 KB, image/png)
2020-02-09 10:25 UTC, Jan Przybylak
Details
For comparison, info.plist of TextEdit (the default text editor on the Mac) (208.24 KB, image/png)
2020-02-09 10:25 UTC, Jan Przybylak
Details

Note You need to log in before you can comment on or make changes to this bug.
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.