<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>336990</bug_id>
          
          <creation_ts>2014-07-03 01:50:00 +0000</creation_ts>
          <short_desc>Chromium and Firefox does not remember their virtual desktops on session restore</short_desc>
          <delta_ts>2026-01-16 07:03:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Session Management</component>
          <version>5.27.5</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=348047</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>X11-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dietrich Daroch">Dietr1ch</reporter>
          <assigned_to name="Lubos Lunak">l.lunak</assigned_to>
          <cc>al.neodim</cc>
    
    <cc>alan.j.wade</cc>
    
    <cc>andrewlord</cc>
    
    <cc>ardagunes</cc>
    
    <cc>bugs.kde.org</cc>
    
    <cc>codermotor</cc>
    
    <cc>devguy.ca</cc>
    
    <cc>endymion+kde</cc>
    
    <cc>eseifert</cc>
    
    <cc>julien.dlq</cc>
    
    <cc>kde</cc>
    
    <cc>KDE</cc>
    
    <cc>kdedev</cc>
    
    <cc>lepetitdragonbleu</cc>
    
    <cc>m.kurz</cc>
    
    <cc>marXtevens</cc>
    
    <cc>miranda</cc>
    
    <cc>muesli</cc>
    
    <cc>nate</cc>
    
    <cc>niklas</cc>
    
    <cc>ol+kde</cc>
    
    <cc>postix</cc>
    
    <cc>rafael.linux.user</cc>
    
    <cc>rcrit</cc>
    
    <cc>samdinner</cc>
    
    <cc>tbondvagyok</cc>
    
    <cc>the.real.samuel.jimenez</cc>
    
    <cc>ville.aakko</cc>
    
    <cc>whyhow+tech</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1459082</commentid>
    <comment_count>0</comment_count>
    <who name="Dietrich Daroch">Dietr1ch</who>
    <bug_when>2014-07-03 01:50:00 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961234</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-09-29 16:05:18 +0000</bug_when>
    <thetext>*** Bug 395210 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961236</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-09-29 16:05:23 +0000</bug_when>
    <thetext>*** Bug 421034 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961238</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-09-29 16:08:14 +0000</bug_when>
    <thetext>*** Bug 419354 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973325</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-11-09 17:53:47 +0000</bug_when>
    <thetext>*** Bug 428864 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014312</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-10 23:15:31 +0000</bug_when>
    <thetext>*** Bug 419953 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2018003</commentid>
    <comment_count>6</comment_count>
    <who name="David Allen">codermotor</who>
    <bug_when>2021-03-22 00:02:39 +0000</bug_when>
    <thetext>7+ years and still not fixed? Good lord! ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2231287</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-05-17 17:19:14 +0000</bug_when>
    <thetext>*** Bug 421870 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2240351</commentid>
    <comment_count>8</comment_count>
    <who name="Mark A. Stevens">marXtevens</who>
    <bug_when>2023-07-08 18:32:47 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242164</commentid>
    <comment_count>9</comment_count>
    <who name="Mark A. Stevens">marXtevens</who>
    <bug_when>2023-07-22 16:37:01 +0000</bug_when>
    <thetext>I don&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2287941</commentid>
    <comment_count>10</comment_count>
    <who name="Rafael Linux User">rafael.linux.user</who>
    <bug_when>2024-02-11 13:06:32 +0000</bug_when>
    <thetext>Can confirm this issue. I thought it was only Firefox, but can confirm same for Chrome/Chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302413</commentid>
    <comment_count>11</comment_count>
    <who name="Ville Aakko">ville.aakko</who>
    <bug_when>2024-03-18 08:26:08 +0000</bug_when>
    <thetext>(I&apos;m not sure if this bug report is about desktops or activities, as both are mentioned.

Either way, Firefox has never remembered it&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302461</commentid>
    <comment_count>12</comment_count>
    <who name="Vincent">lepetitdragonbleu</who>
    <bug_when>2024-03-18 10:24:45 +0000</bug_when>
    <thetext>(In reply to Ville Aakko from comment #11)
&gt; But after upgrading to Plasma 6, there is a regression, as neither will be
&gt; remembered. All firefox windows will be opened on the current activity and
&gt; desktop (despite having arranged windows elsewhere).

I have the same issue with Plasma 5 on Wayland.
Is it related to Wayland?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2360603</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-09-28 02:39:34 +0000</bug_when>
    <thetext>This is X11-specific since it&apos;s about real session restore which isn&apos;t available on Wayland yet; lowering priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2396530</commentid>
    <comment_count>14</comment_count>
    <who name="Alexad">al.neodim</who>
    <bug_when>2025-02-10 19:12:42 +0000</bug_when>
    <thetext>Experiencing the same issue on Plasmashell 6.1.5. Seems like due to lack of integration with ksmserver.

Btw. I have similar issue with xterm being restored into first virtual desktop regardless of where I run it before loggingout/rebooting. Previously this was non-issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426890</commentid>
    <comment_count>15</comment_count>
    <who name="John Kizer">john</who>
    <bug_when>2025-05-23 03:17:16 +0000</bug_when>
    <thetext>*** Bug 499842 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2463930</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-10-22 20:21:01 +0000</bug_when>
    <thetext>The problem here is in Firefox and Chromium. KWin doesn&apos;t have the necessary information to restore individual windows to individual virtual desktops without help from the app in the form of support for the session restore protocol — either the X11 one or the Wayland one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>