Bug 510565

Summary: "Open with" missing MANY files types
Product: [Applications] kate Reporter: Fred Leonard <Fred.Leonard4>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 25.08.2   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: info.plist for macos application bundle.

Description Fred Leonard 2025-10-13 15:11:28 UTC
Created attachment 185736 [details]
info.plist for macos application bundle.

SUMMARY
Trying to replace BBEdit with Kate.
But, it will not open most common file types. I can force it to by drag and drop, and other methods, so it can read the files and work with them, but they are not easy to open.
MadOS won't work because Kate was not registered for those file types.
I edited the info.plist in the bundle, and I can add the file types, and get them to work, so this just needs to be added to the next build.


STEPS TO REPRODUCE
1. explained above
2. 
3. attaching info.plist changes

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 15.7.1
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I adde over 100 file types, and haven't tested them all yet, but it now at least tries.
.plist files are working, which is what got me started.
Most of them should work, as they have worked with drag and drop and other methods, but I need to go through and test them all
I added a catch-all for "*", but that doesn't register the file types with macOS, you still need the individual types for "open with" and Finder registration to work.

after you install the change, you can rebuild the Finder database for the Finder to learn the new app assosiations.

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

attaching the new info.plist file
Comment 1 Christoph Cullmann 2025-10-14 20:11:02 UTC
Are you interested to contribute that upstream?

https://invent.kde.org/utilities/kate/-/blob/master/apps/kate/data/MacOSXBundleInfo.plist.in?ref_type=heads
Comment 2 Fred Leonard 2025-10-15 04:33:23 UTC
(In reply to Christoph Cullmann from comment #1)
> Are you interested to contribute that upstream?
> 
> https://invent.kde.org/utilities/kate/-/blob/master/apps/kate/data/
> MacOSXBundleInfo.plist.in?ref_type=heads

Sure, but I am not sure how.
What would I need to do?

Also, I submitted another report, the HomeBrew deployment is now missing/broken.
Comment 3 Christoph Cullmann 2025-10-27 20:20:50 UTC
Git commit 1c2ad16ea0ff56e8a573f3985017f647a4428dae by Christoph Cullmann.
Committed on 27/10/2025 at 20:20.
Pushed by cullmann into branch 'master'.

register more mime-types & use same template for both apps

utilities/kate!1920

allow multiple instances ok Kate, too

M  +136  -14   apps/kate/data/MacOSXBundleInfo.plist.in
M  +2    -1    apps/kwrite/CMakeLists.txt
D  +0    -53   apps/kwrite/data/MacOSXBundleInfo.plist.in

https://invent.kde.org/utilities/kate/-/commit/1c2ad16ea0ff56e8a573f3985017f647a4428dae