Bug 497980 - session restauration opens three windows with Chromium based browsers when .deb-based
Summary: session restauration opens three windows with Chromium based browsers when .d...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-28 12:06 UTC by m.wege
Modified: 2025-01-10 15:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
plasmasessionrestorestaterc as wished. (1.14 KB, text/plain)
2025-01-09 14:20 UTC, m.wege
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m.wege 2024-12-28 12:06:25 UTC
When I reboot with open browers based on Chromium after reboot, there will be three empty browser windows opened if that browser is running from a deb (in this specially with Chrome and Edge). The content is not restored, I still have to click for the restoration of the tabs. It will be working fine, if the browser is installed as snap (Chromium in this case).
Comment 1 Nate Graham 2025-01-04 00:30:50 UTC
I strongly suspect this is an app issue.
Comment 2 Harald Sitter 2025-01-09 12:55:49 UTC
wayland or x11?
Comment 3 m.wege 2025-01-09 12:58:43 UTC
Wayland
Comment 4 Harald Sitter 2025-01-09 13:51:00 UTC
Please attach this file:

~/.local/state/plasmasessionrestorestaterc
Comment 5 m.wege 2025-01-09 14:20:38 UTC
Created attachment 177233 [details]
plasmasessionrestorestaterc as wished.
Comment 6 Bug Janitor Service 2025-01-09 14:31:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5048
Comment 7 Harald Sitter 2025-01-10 12:09:24 UTC
Git commit 83dda1144d4f4455c7209497c103f0939150fd76 by Harald Sitter.
Committed on 10/01/2025 at 11:36.
Pushed by sitter into branch 'master'.

session-restore: only restore each app once

since we basically rely on the application restoring its own state there
is no reason for us to start the same app multiple times. if it requires
multiple windows it will/should start them on its own

M  +7    -0    startkde/session-restore/save.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/83dda1144d4f4455c7209497c103f0939150fd76
Comment 8 Harald Sitter 2025-01-10 12:58:27 UTC
Git commit 5e9af6e3711ccf220ec3e1043fb343c3da006049 by Harald Sitter.
Committed on 10/01/2025 at 12:09.
Pushed by sitter into branch 'Plasma/6.3'.

session-restore: only restore each app once

since we basically rely on the application restoring its own state there
is no reason for us to start the same app multiple times. if it requires
multiple windows it will/should start them on its own


(cherry picked from commit 83dda1144d4f4455c7209497c103f0939150fd76)

Co-authored-by: Harald Sitter <sitter@kde.org>

M  +7    -0    startkde/session-restore/save.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/5e9af6e3711ccf220ec3e1043fb343c3da006049
Comment 9 m.wege 2025-01-10 15:29:28 UTC
Thank you!