This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kate session on separate window

Tags: None
(comma "," separated)
rshah
Registered Member
Posts
13
Karma
0
OS

kate session on separate window

Fri Mar 05, 2010 3:21 am
Hi,
I'm using kate from KDE SC4.4.1

On previous version(4.3.x) using krunner kate session plugin, i can launch many kate window for each session.

But starting 4.4.0, everytime i launch kate session from krunner only one kate window appear.

I tried also from konsole using 'kate --start sessionA' then launch the same command for sessionB. Always ended up with only sessionB opened.

Is this a bug or something missing at my kate's configuration?


Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kate session on separate window

Fri Mar 05, 2010 6:17 am
Neither, it is a deliberate behaviour change by Kate's developers.
You may wish to ask them on kwrite-devel@kde.org if it would be possible to restore this behaviour in the future.

Code: Select all
r1025768 | jowenn | 2009-09-20 04:24:21 +1200 (Sun, 20 Sep 2009) | 20 lines

Do not reload the session if it is already opened, just raise the window.

kate --start session1            (same as --use)
kate --start session1            just raise the opened session (same as --use)
kate --start session2            raise instance and open new sessoin (same as --use)
kate -n --start session3         start a new instance and open tne new session
kate -n --start session4         start a new instance and open tne new session
kate -n --start session3         raise instance of session3.

kate -n --start session3  somefile
kate  --start session3  somefile2        (same as --use)
behave the same if an instance of session3 is already opened and open the two files in that instance
if before -n only another instance, eg session2 is opened than a new instance is opened with session3

--> only one instance of one specific session possible
--> there can be more instances running, each having an own session (-n)

I think that's the most sane behaviour

BUG:202210


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rshah
Registered Member
Posts
13
Karma
0
OS

Re: kate session on separate window

Fri Mar 05, 2010 9:18 am
Thanks for reply.
I think, i have two options here:
- ask kate developer to add option to always open session in new instance.
- ask krunner's kate plugin author to add something to allow kate to create new instance for each session (since kate actually support this option (-n) ).
mct
Registered Member
Posts
1
Karma
0

Re: kate session on separate window

Wed Jun 16, 2010 9:50 am
For having a workaround you can add the following line in your .bashrc

Code: Select all
if [ -d ~/bin ] ; then
    PATH=.:~/bin:"${PATH}"
fi


After that you can create wrapper for calling kate:

Code: Select all
mkdir ~/bin
touch ~/bin/kate
chmod 777 ~/bin/kate


The content of ~/bin/kate with "-n"
Code: Select all
#!/bin/bash

/usr/bin/kate -n $@ &> /dev/null &


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]