Bug 383125 - External file/link/URL/etc opened by tab-based app window in another virtual desktop creates a new window in the current virtual desktop instead of a new tab in the existing instance
Summary: External file/link/URL/etc opened by tab-based app window in another virtual ...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-04 15:11 UTC by avlas
Modified: 2023-04-27 22:28 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avlas 2017-08-04 15:11:03 UTC
If I externally open a text file for Kate or an external link for the default browser application (whatever it is; konqueror and chromium tested) on a secondary virtual desktop, it launches a new window instead of opening the file/link in the already opened window of the original virtual desktop.

Ideally, I think the behavior (whether to respect single window mode across virtual desktops) should be paired with taskbar's settings about whether to show or not windows present in different virtual desktops.
Comment 1 avlas 2017-08-04 15:17:07 UTC
Btw, I'm sorry if this issue should have been assigned to a different package... Plasma vs Kwin vs "?"

If that would be the case, please edit the "Product" and "Component" above. Thanks!
Comment 2 Christoph Feck 2017-08-28 22:51:13 UTC
Excuse my ignorance, but where do you configure "single window mode"?
Comment 3 sunwebrw 2017-08-30 10:13:32 UTC
There is no activation for this mode. Kate, for example, can show on Desktop 1 one window and each new file will be opened in the new tab. However if you open file while on Desktop 2 it will open new windows for Kate on that desktop.

Ideally it'd be nice if we could have a feature to open file in programs that have support for tabs in the same instance but in different tab even if they are on a different desktop(unless checked otherwise in the settings of Task Manager or Icon only Manager, etc).

And i guess in theory it is possible atleast for KDE programs and maybe some others if they'll give an option to do it(a list of such programms will be pretty small to begin with so why not?).
Comment 4 avlas 2017-09-07 15:59:31 UTC
Thanks, sunweb, for helping clarifying the point :)
Comment 5 Christoph Feck 2017-09-20 01:04:47 UTC
But why is this a Plasma bug? Kate decides to open a new window or a new tab, doesn't it?
Comment 6 avlas 2017-09-20 02:00:08 UTC
I think it's something that is not exclusively dependent of Kate, as it behaves differently if called from the same virtual desktop it is already open (kate opens a tab), or from a different one (kate opens a new window; note that I refer to Kate because you referred to it, but this is the case also for browsers).

So this may depend on the application and kwin or plasmashell in some sort of way... to at least make kate know about a same vs a diff virtual desktop.

What I proposed as the ideal way to tackle this, would be to adjust behavior in concordance with plasma's taskbar configuration. In the taskbar one can configure which applications are visible, whether all of them, or whether those of the same activity/desktop or screen. It would be great to have kate and browsers to open additional windows in sync with the taskbar configuration.

I hope I was a bit clearer this time...
Comment 7 Alexander Mentyu 2017-11-22 09:05:31 UTC
Tried to set Special Application Settings... -> Size & Position -> Settings Activity -> Apply Initially -> Activity #2 - in Kate, Chromium and Firefox apps - then switching to Activity #1 and opening text and html files in above-mentioned apps.

My observations:
Kate app - switching to Activity #2 happens and Kate receives focus - for first opened file if before Kate wasn't started - and for subsequent files opening in new tabs in single Kate window - if Kate was started before

Firefox and Chromium apps - switching to Activity #2 isn't happening and these browsers didn't receive focus for first open file - if browsers weren't started before. For subsequent files and if they are already started in Activity #2 - switching to Activity #2 happens, browsers receive focus and file is opening in new tab in each browser's single window.
Comment 8 Nate Graham 2021-03-10 02:10:37 UTC
Confirmed; see also Bug 408919.

Not sure if this can be fixed generically, or if it needs fixes from each individual app.
Comment 9 Nate Graham 2023-04-27 22:28:53 UTC
Indeed, it needs support in each app. Bug 408919 tracks doing it for Dolphin (which is now fixed on X11, and only waiting for a fix on Wayland). Please submit a new bug report for each other affected app. Thanks!