kwrite does not provides a DCOP interface to open documents (as kate does)

Bug #50103 reported by Mildred on 2006-06-17
Affects Status Importance Assigned to Milestone
KDE Base
kdebase (Ubuntu)

Bug Description

Binary package hint: kdebase

When I want to open multiple documents with kwrite, I can :
- click on file->open and choose the file
- drag and drop the file I want to edit into a kwrite window
But there is no way to do it using the console without starting another instance of kwrite (which take a longer time on my computer)

kate does provide a DCOP interface to open documents, then I can write a shell script that does what I want, but I prefer to use kwrite.

So, is it possible to have a such interface ?

Version: 4.5.2 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18 dapper)
Compiler: Target: i486-linux-gnu
OS: Linux (i686) release 2.6.15-25-686

Kate does have a DCOP interface to open documents (KateApplication/openURL).
Kwrite should have, but does not :

$ dcop kwrite-6000 MainApplication-Interface
QCStringList interfaces()
QCStringList functions()
void disableSessionManagement()
QCString startupId()
QCString caption()
void quit()
void reparseConfiguration()
void updateUserTimestamp(ulong time)

should be easy to fix for someone who already know the structure of kdebase ... But unfortunately I do not.

Hervé Fache (rvfh) wrote :

You mean:
kwrite foo
kwrite bar

And you would like both in the same kwrite instance? Is that it?

I believe this is impossible with kwrite because it does not support the --use option. In kate, you would do:
kate foo
kate --use bar

In your case, it seems the --use is automatic...

This said, kwrite and kate are really the same program! Why not use kate instead?

Mildred (mildred) wrote :

I prefer using kwrite because I can have one window for each opened documents. Sometimes for big projects it is not the best way and I prefer having a list of all open documents on the right, sometimes, for small documents I prefer havingone window for each document.
I know in kate I can open others windows, split windows and so on but I figured out no way to open easily one window per document.

can someone at lest reply to this bug...
Why it seems in the past an interface existed and disappeared.

My problem is when I open a text document by double-clicking on it, it creates a new instance of kwrite and it takes from 5 to 10 seconds, and it is too much for me. Also i don't want to use kate because I prefer a per document window since I do't maximize them.

Richard Johnson (nixternal) wrote :

I am confirming this, but see it as a wishlist as kwrite is supposed to be the very basic gui text editor for KDE. If someone feels different about the importance, go ahead and change it. But at this time, it isn't reported as a bug upstream.

Changed in kdebase:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Changed in kdebase:
status: Unknown → Unconfirmed
Changed in kdebase:
status: Confirmed → Triaged
Jonathan Thomas (echidnaman) wrote :

Hello there,

Kubuntu currently does not have the manpower necessary to implement this feature as a distribution, so we are closing this report. Worry not, though, because your wish item is still being tracked by KDE at . Once KDE implements this feature, we will include it in the Kubuntu release which contains the KDE version the feature was implemented in.

Thanks for understanding, and have a nice day.

Changed in kdebase (Ubuntu):
status: Triaged → Won't Fix
Changed in kdebase:
importance: Unknown → Wishlist

Kate has a dbus interface in KDE 4.

run qdbus with kate running to see it.

Via dbus should be possible.

Changed in kde-baseapps:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.