| Summary: | Kate: Add the ability to force Kate into MDI mode all the time | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Darrell <darrella> |
| Component: | tdebase | Assignee: | Calvin Morrison <mutantturkey> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | bugwatch, darrella, kb9vqf, mutantturkey, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
Preliminary patch to enforce MDI
Updated patch for latest GIT which also fixes the About dialog |
||
Created attachment 1249 [details]
Updated patch for latest GIT which also fixes the About dialog
Please test for desired functionality. If there are no regressions this patch can be pushed to GIT. Patch applied and rebuilt. This took me a while to test because I have kate configured everywhere with the --use option, even in a bash alias. I had to disable all of that. :-) First, no problems with an empty About dialog. Looks good. The patch seems to work as intended, at least within the scope of my thinking. When the new MDI option is enabled, opening files from konqueror or the command line results in kate opening in the same instance. When disabled kate uses a separate instance. I configured root's kate settings the same way and then tested with tdesu. The same tdesu instance was used. When disabled then each tdesu session opened in a separate instance. A note: I am confused about one related area. The default kate.desktop in the tdebase sources contains the --use option. That would seem to mean kate should always use the currently open instance but that is not what I see. When the new MDI option is disabled, kate opens in separate instances rather than the same instance. Yet with the new MDI option disabled, when I open a file from konsole using kate --use then the file opens in the current instance of kate. My thinking is because the installed kate.desktop contains the --use option, when the new MDI option is disabled kate should still open all files in the same instance. So please correct me if I'm misunderstanding the --use option. I've been using this patch for some time. No problems I can see. How about we push to git? Patch pushed to git in commit f3db9433. |
Created attachment 711 [details] Preliminary patch to enforce MDI Long ago Kate originally was a Multiple Document Interface (MDI) app. Starting in the KDE 3.5 series, Kate was changed to the Single Document Interface (SDI). With that change a kludge to somewhat support MDI behavior was added through the --use parameter. The --use parameter works only most of the time. Reading bug reports, forum discussions, and blogs indicate that this change from MDI to SDI never has worked completely and has frustrated many users. During the effort to resolve bug report 692, a preliminary patch was submitted to enforce a true MDI. That patch was not needed to resolve bug report 692 but nonetheless has promise as a new feature. The patch was working okay but had a bug in that the Kate About dialog information disappeared. The patch also needs further usability testing. For example, users who prefer the SDI should be involved to ensure the patch does not prevent their preferred usage. The patch is being moved from bug report 692 to this new enhancement request.