Kate: one instance only!
Nigel Ridley
nigel at prayingforisrael.net
Mon Aug 17 04:39:13 UTC 2009
Perry wrote:
> Le Sunday 16 August 2009 23:15:20 Clay Weber, vous avez écrit :
>> On Sunday 16 August 2009 04:35:38 pm Willy Hamra wrote:
>>> 2009/8/16 Dotan Cohen <dotancohen at gmail.com>:
>>>> No matter what I do, I cannot get Kate to open new files in an
>>>> existing instance. Please, how is this done in KDE 4.x? Thanks.
>>> this was discussed a while ago. you need to change file association
>>> for texts. there's a parameter when passed to kate, it reuses an
>>> existing instance. i'm not on my PC right now, just type "kate --help"
>>> in konsole, and see what it is. change the file association
>>> accordingly to pass that parameter everytime a file is selected to
>>> open with kate :)
>> adding '--use' works for this
>
> I googled a bit and found:
> <http://awesomelinux.blogspot.com/2009/05/make-kubuntu-904-use-single-kate.html>
> I only had time to try the "adding '--use' (it's getting late in my timezone)
> It works but I get a message (translated from french) saying:
> ***KDEInit cannot launch "/usr/bin/kate"***, perhaps the cure was given in
> the above link, I'll have to check later.
>
> Also when you open files from within Kate the same instance is used.
>
> Perry
>
I checked the above link and for me, running a fresh install of 9.04, my Kate entries are in:
/home/nigel/.local/share/applications/kde4
and since I had already done the:
System settings->Advanced tab->File bindings. In the treeview select text and then for every
filetype that has Kate as an option of program to the right, select the kate option and click
edit, in the dialog that opens select the Program tab and change the Command from kate %U to kate
--use %U.
I have a file named 'kate --use %U.desktop' (it's the only one in
'/home/nigel/.local/share/applications/kde4'.
I then, as per the above link, changed the line "X-DBUS-StartupType=Multi" and change the "Multi"
to "None".
Except that my entry had the 'Multi' as 'multi' -- so I changed it to 'none' rather than 'None'
(notice the difference in Capital letters!).
Now I am pleased to say that I don't get annoying pop-ups warning me about 'KDEinit launch
"/usr/bin/kate".
Blessings,
Nigel
More information about the kubuntu-users
mailing list