<?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>497980</bug_id>
          
          <creation_ts>2024-12-28 12:06:25 +0000</creation_ts>
          <short_desc>session restauration opens three windows with Chromium based browsers when .deb-based</short_desc>
          <delta_ts>2025-01-24 11:53:27 +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>6.2.4</version>
          <rep_platform>Neon</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>m.wege</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>natalie_clarius</cc>
    
    <cc>nate</cc>
    
    <cc>sitter</cc>
    
    <cc>vkrevs</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/5e9af6e3711ccf220ec3e1043fb343c3da006049</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>2385345</commentid>
    <comment_count>0</comment_count>
    <who name="">m.wege</who>
    <bug_when>2024-12-28 12:06:25 +0000</bug_when>
    <thetext>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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2386688</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-04 00:30:50 +0000</bug_when>
    <thetext>I strongly suspect this is an app issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388006</commentid>
    <comment_count>2</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2025-01-09 12:55:49 +0000</bug_when>
    <thetext>wayland or x11?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388007</commentid>
    <comment_count>3</comment_count>
    <who name="">m.wege</who>
    <bug_when>2025-01-09 12:58:43 +0000</bug_when>
    <thetext>Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388023</commentid>
    <comment_count>4</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2025-01-09 13:51:00 +0000</bug_when>
    <thetext>Please attach this file:

~/.local/state/plasmasessionrestorestaterc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388034</commentid>
    <comment_count>5</comment_count>
      <attachid>177233</attachid>
    <who name="">m.wege</who>
    <bug_when>2025-01-09 14:20:38 +0000</bug_when>
    <thetext>Created attachment 177233
plasmasessionrestorestaterc as wished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388040</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-09 14:31:25 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5048</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388326</commentid>
    <comment_count>7</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2025-01-10 12:09:24 +0000</bug_when>
    <thetext>Git commit 83dda1144d4f4455c7209497c103f0939150fd76 by Harald Sitter.
Committed on 10/01/2025 at 11:36.
Pushed by sitter into branch &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388352</commentid>
    <comment_count>8</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2025-01-10 12:58:27 +0000</bug_when>
    <thetext>Git commit 5e9af6e3711ccf220ec3e1043fb343c3da006049 by Harald Sitter.
Committed on 10/01/2025 at 12:09.
Pushed by sitter into branch &apos;Plasma/6.3&apos;.

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 &lt;sitter@kde.org&gt;

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/5e9af6e3711ccf220ec3e1043fb343c3da006049</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2388394</commentid>
    <comment_count>9</comment_count>
    <who name="">m.wege</who>
    <bug_when>2025-01-10 15:29:28 +0000</bug_when>
    <thetext>Thank you!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>177233</attachid>
            <date>2025-01-09 14:20:38 +0000</date>
            <delta_ts>2025-01-09 14:20:38 +0000</delta_ts>
            <desc>plasmasessionrestorestaterc as wished.</desc>
            <filename>plasmasessionrestorestaterc</filename>
            <type>text/plain</type>
            <size>1169</size>
            <attacher>m.wege</attacher>
            
              <data encoding="base64">WzBdCmFwcElkPWdvb2dsZS1jaHJvbWUuZGVza3RvcAoKWzFdCmFwcElkPW1pY3Jvc29mdC1lZGdl
LmRlc2t0b3AKClsxMF0KYXBwSWQ9bGlicmVvZmZpY2Utc3RhcnRjZW50ZXIuZGVza3RvcAoK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