You are not logged in.

#1 2013-08-11 16:16:02

brewlius_cesar
Member
From: VA
Registered: 2013-06-07
Posts: 24

[SOLVED] KDE switches activities when opening a new File

First off, I've been using KDE Plasma Workspaces for a few months now, and for the most part am largely satisfied.  Thanks to both the developers of KDE and to the contributors on Arch who made setting everything up a breeze.

One thing that does annoy me however is how it switches Activities when opening  a new file, if the default application already has a running instance.  For instance, say I have one Activity which I am using as a development environment and have Kate open to view source.  Now I switch to a second Activity where I am working on editing style sheets for my web page and again wish to use Kate.  If I open Dolphin and click on one of my style sheets (launching Kate as the default editor) I will be switched back to my first Activity and have the style sheet opened in the already running instance of Kate. 

To me this behavior is not ideal, I would rather have the DE spawn a new instance of kate for that Activity.  I've perused through some of the settings options but haven't seen anything obvious.

Last edited by brewlius_cesar (2013-08-14 10:29:32)

Offline

#2 2013-08-13 20:11:41

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 347

Re: [SOLVED] KDE switches activities when opening a new File

I don't have the program in front of me right now, but there should be something in Kate's settings that lets you open multiple instances.  If you want to open a file as a new tab in a particular Kate instance, you can either click and drag the file to the desired instance or create a new "Open With" option using the command "kate -u"

http://linux.die.net/man/1/kate

Offline

#3 2013-08-13 21:48:42

brewlius_cesar
Member
From: VA
Registered: 2013-06-07
Posts: 24

Re: [SOLVED] KDE switches activities when opening a new File

Thanks for the response schmidtbag, but these are both suggestions for opening a file in an existing instance of Kate, when I am looking to instead spawn a new instance (at least for the current Activity).  Also, these suggestions are specific to Kate, where I would like this behavior to extend across KDE.

Maybe I am just making a big fuss over nothing,  but for me it seems more appropriate to spawn a new instance of a program if I click on a file from a file browser, such as Dolphin.  If I wanted to open a file in an already running instance of a program I would use Ctrl+O from that program, or drag the file over to the program as schmidtbag suggested.

I'm thinking about reposting over at kde.org, I'll be sure to follow up back over here, no matter what the outcome is.

Offline

#4 2013-08-13 22:49:23

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] KDE switches activities when opening a new File

Just to be clear: it switches Activity - not virtual desktop? I ask because if it were the latter, I might have some inkling of the kinds of things you might try. But if it is the former, I'm clueless. I've never figured out what I'm meant to do with Activities or what the advantages are meant to be.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-08-14 00:31:20

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 347

Re: [SOLVED] KDE switches activities when opening a new File

I understood the question, what I was suggesting was to approach it from the opposite direction.  But now that I'm home and using KDE, I can now give you the CORRECT solution:

1.  So, find yourself a code file you open with Kate.  Right-click on it and select Properties.
2.  Click on "File Type Options"
3.  In the "Application Preference Order", edit Kate
4.  Go to the Application tab and remove any excess arguments after "kate"
5.  Save and try it out.  As I suggested in my previous post, you could try creating a separate entry in the Application Preference Order where you CAN open the file in an existing instance.

Last edited by schmidtbag (2013-08-14 00:34:14)

Offline

#6 2013-08-14 01:55:31

brewlius_cesar
Member
From: VA
Registered: 2013-06-07
Posts: 24

Re: [SOLVED] KDE switches activities when opening a new File

schmidtbag, sorry for the misunderstanding, your suggestion worked perfectly!

I went into the Application tab and simply replaced the command `kate -u` with `kate -n`...and it works exactly as I would prefer. 

So simple, I feel kind of ridiculous for asking the question in the first place.  Thanks again!

Offline

#7 2013-08-14 02:03:56

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 347

Re: [SOLVED] KDE switches activities when opening a new File

No problem.  While KDE is my personal favorite DE due to the immense amount of features, it's probably the most disorganized when it comes to configuration, though, it has been getting better.

Anyways, don't forget to mark this topic as solved.

Offline

#8 2013-08-14 04:04:34

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: [SOLVED] KDE switches activities when opening a new File

Yah the whole activity thing is bogus I guess you know you can adjust your activitys by unlocking the widgets goto add widgets and activitys
   on the right click.  Ive got one activity for Desktop so theres no where else to go. technically its kate %u.....


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

Board footer

Powered by FluxBB