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

Bug #1793242 reported by Stas
This bug affects 8 people
Affects Status Importance Assigned to Milestone
plasma-workspace (Ubuntu)

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
$ grep gkrellm ~/.config/ksmserverrc
$ 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

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

  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,
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.

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.