Bug 348047

Summary: Applications started on first Activity instead of where they were left
Product: [Plasma] plasmashell Reporter: Ancoron <ancoron.luciferis>
Component: Session ManagementAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: major CC: bhush94, daniel-r.schmidt, info, m.kurz, nate, oded, plasma-bugs, postix, stakanov.s
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=336990
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ancoron 2015-05-21 09:02:10 UTC
I have several Activities which use different instances of the same application for different purposes.

Applications include:
* Firefox
* Kate
* Dolphin

As plasma 5 forced me into using Activities instead of virtual desktops to have different backgrounds and desktop widgets, I expect it to also respect which application instance had been started on which Activity.

Reproducible: Always

Steps to Reproduce:
1. Login
2. start Dolphin in first Activitiy
3. start another Dolphin in second Activity
4. Logout
5. Login

Actual Results:  
Two instances of Dolphin are started in the first Activity

Expected Results:  
One instance of Dolphin is started in the first Activity, the other in the second Activity

With KDE SC 4 and virtual desktops, this was working just fine and application instances where started in the virtual desktop where they where left at logout time.
Comment 1 Daniel Schmidt 2018-07-01 08:19:34 UTC
I have the same issue on Manjaro 17.1.10 / Plasma 5.12.5. 

In fact, most of the time, when I login/logout all applications are restored to the first activity (except those where the activity was stopped before logout and those where I force an activity with window manager rules).
Comment 2 Geert Janssens 2020-06-26 09:19:20 UTC
I'm seeing the same with Dolphin and it has been like that for a long time. Perhaps the other mentioned applications behave the same, but I never keep those open so I haven't tested.

I'm currently on Fedora 31, with Kde Plasma 5.17.1, Frameworks 5.68.0, Qt 5.13.2. I'm not sure these version numbers matter per se. It's bee like this for a very long time.
Comment 3 Geert Janssens 2021-11-20 10:34:52 UTC
I forgot I had left a comment on this bug. Since then things have worsened. A while ago I upgraded to Fedora 34 and since then all applications restore to  the first workspace. This is becoming highly annoying. It's a serious chore to relocate 10+ windows each time the PC is rebooted (ie daily).
Hoping a newer plasma would fix it, I upgraded to Fedora 35 yesterday but it's still failing to properly restore my session.
Comment 4 Geert Janssens 2021-11-20 10:37:39 UTC
For additional info
Fedora 35 uses plasma-workspace-5.23.3-1.fc35.x86_64
Fedora 34 uses plasma-workspace-5.22.5-2.fc34.x86_64
Comment 5 Geert Janssens 2022-05-05 20:12:29 UTC
Bug 442380 describes a similar issue, but this time across virtual desktops rather than activities. I suspect this to be the same bug, but I'll leave it to someone more experienced to make a final decision on this.
Comment 6 Geert Janssens 2022-05-05 20:15:57 UTC
Furhtermore bug 351402 has a duplicate bug 437551 which mentions both symptoms have started appearing together. It really looks like it would be useful to bring all those bugs together under one.
Comment 7 Geert Janssens 2022-05-05 20:19:17 UTC
I am aware this feature is not implemented yet under Wayland, so for completeness I'll add I'm seeing this under X11. I don't know about the original author though.
Comment 8 Oded Arbel 2022-11-16 11:37:52 UTC
(In reply to Geert Janssens from comment #7)
> I am aware this feature is not implemented yet under Wayland, so for
> completeness I'll add I'm seeing this under X11. I don't know about the
> original author though.

I have this experience on both X11 and Wayland.

Regarding session restore to correct desktop, in X11 it mostly worked well for me (one Firefox window, of multiple that restore, consistently opens on the first desktop instead of where it came from, but otherwise it is fine); in Wayland the behavior changes virtually every time session restore runs (I'm running on Neon unstable, so I get more kwin-wayland updates than how many times I log out), but currently desktops are remembered perfectly.
Comment 9 Nate Graham 2023-05-17 17:17:09 UTC
*** Bug 450075 has been marked as a duplicate of this bug. ***