KDE saves and restores all but Google Chrome in its Desktop saved session

Bug #1793242 reported by Stas
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Fedora
New
Undecided
Unassigned
plasma-workspace (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

For some reason when enabling Restore manually saved session in Desktop Session Login and Logout settings, and hitting Save Session from the applications menu - all opened application windows get saved and restored upon login into the KDE session, except google chrome.

I located the session file ~/.config/ksmserverrc and indeed firefox and many other applications are there:

$ grep firefox ~/.config/ksmserverrc
program11=firefox
restartCommand11=/usr/bin/firefox,--sm-client-id,10686f70[...]
$ grep gkrellm ~/.config/ksmserverrc
program12=/usr/bin/gkrellm
restartCommand12=/usr/bin/gkrellm,--sm-client-id,10686f70[...]
$ grep chrome ~/.config/ksmserverrc

as you can see chrome is not there.

And no application has been configured to be excluded:

$ grep excludeApps ~/.config/ksmserverrc
excludeApps=

The only unusual thing about chrome, as compared to other applications, perhaps, is that it appears as many threads in the output of ps(1).

I have it installed as:

$ sudo apt-get install google-chrome-stable
google-chrome-stable is already the newest version (69.0.3497.100-1)

My setup:

lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

plasma-workspace:
  Installed: 4:5.12.6-0ubuntu0.1
  Candidate: 4:5.12.6-0ubuntu0.1
  Version table:
 *** 4:5.12.6-0ubuntu0.1 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     4:5.12.4-0ubuntu3 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

I first asked about it here,
https://askubuntu.com/questions/1076194/kde-saves-and-restores-all-but-google-chrome-in-its-desktop-saved-session
and others confirmed they are able to reproduce the problem. I was able to reproduce it on 2 similar setups.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-workspace (Ubuntu):
status: New → Confirmed
Revision history for this message
magic8east (magic8east) wrote :

OS: Fedora 29 Twenty Nine
Kernel: x86_64 Linux 4.19.10-300.fc29.x86_64
Uptime: 23m
Packages: 2057
Shell: bash 4.4.23
Resolution: 5120x1440
DE: KDE 5.53.0 / Plasma 5.14.4

Revision history for this message
magic8east (magic8east) wrote :

Same issue on Fedora29 KDE spin listed above. I located the session file ~/.config/ksmserverrc and firefox et al are all present, and are restored correctly when I boot-up again (this is using automatic previous session restore). Chrome however, is not restored.

Revision history for this message
Janek Bevendorff (phoerious) wrote :

This is pretty much how it has always been, but I never had the time to properly analyse it and report it to the KDE devs (just found this report here while searching for it, because I got annoyed again).

Overall, the session restore mechanism seems to be insanely buggy. Chrome is never restored, KDE apps are almost always restored, other Qt and Gtk apps seem to be hit and miss. Sometimes it restores KDE applications that were closed long before I ended the session. This time it was QtDesigner that popped up although I closed it before logging out. I wish this worked more reliably. I hate to say it, but macOS does it perfectly, almost like I never shut down the PC.

Revision history for this message
Woko (wolfram-koehn) wrote :

Same issue here on Kubuntu 20.04

Revision history for this message
Hayk Baghdasaryan (hayk-s-b) wrote :

Is there any progress on this?

Revision history for this message
Cattai Lorenzo (cattai-lorenzo) wrote :

Same Issue here on KDE neon 5.27 x86_64 with Linux 5.19.0-35-generic and Chromium Version 110.0.5481.177 (Official Build, ungoogled-chromium) (64-bit).
This is quite annoying as I tend to leave a few windows open in a few desktops with shown on all activities enabled, the fact that they do not get saved properly means that every time I log in I have to open chromium, click the "restore" session button on chromium, go to every window and manually select "Show in Activities" -> "All Activities", it's a bit time wasting and not ideal.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

This is an upstream bug and they are aware. https://bugs.kde.org/show_bug.cgi?id=336990

Changed in plasma-workspace (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Jaques Arantes (j4x) wrote :

@scarlettmoore, I don't think this is the same issue.

> When session is restored all chromium windows are opened on the same desktop.

In the referred bug they say Chrome windows are indeed restored but not respecting the desktop.

In this case, windows are not restored at all:

> all opened application windows get saved and restored upon login into the KDE session, except google chrome

Sadly it seems that the issue still persists after years and is not a Distro issue since I see it reported in Ubuntu, Fedora and now, OpenSuse.

Behaviour in my system is exactly as described here:
https://askubuntu.com/questions/1076194/kde-saves-and-restores-all-but-google-chrome-in-its-desktop-saved-session#comment1767113_1076194

> ...when I opened Google Chrome manually, there was a message about it not being shutdown properly.

google-chrome-stable 124.0.6367.78-1
plasma6-workspace 6.0.3-1.2
os-release
NAME="openSUSE Tumbleweed"
# VERSION="20240409"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.