Bug 336990

Summary: Chromium and Firefox does not remember their virtual desktops on session restore
Product: [Plasma] plasmashell Reporter: Dietrich Daroch <Dietr1ch>
Component: Session ManagementAssignee: Lubos Lunak <l.lunak>
Status: CONFIRMED ---    
Severity: normal CC: alan.j.wade, andrewlord, ardagunes, bugs.kde.org, codermotor, devguy.ca, endymion+kde, eseifert, julien.dlq, KDE, kdedev, lepetitdragonbleu, m.kurz, marXtevens, miranda, muesli, nate, niklas, ol+kde, postix, rafael.linux.user, samdinner, tbondvagyok, the.real.samuel.jimenez, ville.aakko, whyhow+tech
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=348047
https://bugs.kde.org/show_bug.cgi?id=468252
https://bugs.kde.org/show_bug.cgi?id=482816
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dietrich Daroch 2014-07-03 01:50:00 UTC
When session is restored all chromium windows are opened on the same desktop, this is annoying :c

Reproducible: Always

Actual Results:  
Chromium windows are restored on the same desktop

Expected Results:  
Chromium windows are restored on their last desktop/activity
Comment 1 Nate Graham 2020-09-29 16:05:18 UTC
*** Bug 395210 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2020-09-29 16:05:23 UTC
*** Bug 421034 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2020-09-29 16:08:14 UTC
*** Bug 419354 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2020-11-09 17:53:47 UTC
*** Bug 428864 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2021-03-10 23:15:31 UTC
*** Bug 419953 has been marked as a duplicate of this bug. ***
Comment 6 David Allen 2021-03-22 00:02:39 UTC
7+ years and still not fixed? Good lord! ;)
Comment 7 Nate Graham 2023-05-17 17:19:14 UTC
*** Bug 421870 has been marked as a duplicate of this bug. ***
Comment 8 Mark A. Stevens 2023-07-08 18:32:47 UTC
After installation of latest patches:

[xmas@reindeer cache-reindeer.marXtevens.strangled.net]$ date;/usr/bin/cat /etc/fedora-release; kinfo
Sat Jul  8 01:26:40 PM CDT 2023
Fedora release 38 (Thirty Eight)
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.11-200.fc38.x86_64 (64-bit)
Graphics Platform: offscreen
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
[xmas@reindeer cache-reindeer.marXtevens.strangled.net]$ 

KDE continues to restore x3270 and Firefox windows in the last active Activity, rather than the Activity where the windows were at logoff, or shutdown. An exception to this is Amarok, which retains the correct Activity and restores to that Activity.

[xmas@reindeer cache-reindeer.marXtevens.strangled.net]$ date;/usr/bin/cat /etc/fedora-release; kinfo
Sat Jul  8 01:26:40 PM CDT 2023
Fedora release 38 (Thirty Eight)
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.11-200.fc38.x86_64 (64-bit)
Graphics Platform: offscreen
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
[xmas@reindeer cache-reindeer.marXtevens.strangled.net]$

Reproducible: Always

Actual Results:  
Firefox and x3270 windows are restored on the same desktop

Expected Results:  
Firefox and x3270 windows are restored on their last desktop/activity
Comment 9 Mark A. Stevens 2023-07-22 16:37:01 UTC
I don't know if this will help, but ...

I had to restart Firefox, after it was upgraded, so I accepted the restart of Firefox. It closed all the windows (all 10) and restarted Firefox. All the windows appeared in the current Activity, not distributed to the Activities I had just spent 5 minutes redistributing them, before the restart of Firefox.
Comment 10 Rafael Linux User 2024-02-11 13:06:32 UTC
Can confirm this issue. I thought it was only Firefox, but can confirm same for Chrome/Chromium.
Comment 11 Ville Aakko 2024-03-18 08:26:08 UTC
(I'm not sure if this bug report is about desktops or activities, as both are mentioned.

Either way, Firefox has never remembered it's activity reliably (it seemed like it sometimes did), but it did remember the desktop for me. 

But after upgrading to Plasma 6, there is a regression, as neither will be remembered. All firefox windows will be opened on the current activity and desktop (despite having arranged windows elsewhere).

This is on Arch Linux.
Comment 12 Vincent 2024-03-18 10:24:45 UTC
(In reply to Ville Aakko from comment #11)
> But after upgrading to Plasma 6, there is a regression, as neither will be
> remembered. All firefox windows will be opened on the current activity and
> desktop (despite having arranged windows elsewhere).

I have the same issue with Plasma 5 on Wayland.
Is it related to Wayland?
Comment 13 Nate Graham 2024-09-28 02:39:34 UTC
This is X11-specific since it's about real session restore which isn't available on Wayland yet; lowering priority.