<?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>449077</bug_id>
          
          <creation_ts>2022-01-24 14:45:11 +0000</creation_ts>
          <short_desc>When &quot;Restore manually saved session&quot; is chosen, Kickoff doesn&apos;t show &quot;Save Session&quot; option in the power menu until after a restart</short_desc>
          <delta_ts>2025-09-22 12:16:26 +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>Application Launcher (Kickoff) widget</component>
          <version>master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=488998</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bharadwaj Raju">bharadwaj.raju777</reporter>
          <assigned_to name="David Edmundson">kde</assigned_to>
          <cc>bugz57</cc>
    
    <cc>clay</cc>
    
    <cc>mikel5764</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>toralf.foerster</cc>
    
    <cc>vkrevs</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/4fac2f2a44e801bd773a4c954f0c9c211273a2fd</cf_commitlink>
          <cf_versionfixedin>6.3.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2097571</commentid>
    <comment_count>0</comment_count>
    <who name="Bharadwaj Raju">bharadwaj.raju777</who>
    <bug_when>2022-01-24 14:45:11 +0000</bug_when>
    <thetext>SUMMARY
If a user switches to &quot;Restore manually saved session&quot; in SySe &gt; Desktop Session from another option, the action to &quot;Save Session&quot; in the Kickoff power menu is not shown until after a Plasmashell restart.


STEPS TO REPRODUCE
1. While using a different session saving option, switch to &quot;Restore manually saved session&quot;
2. Check if Kickoff has the &quot;Save Session&quot; action yet

OBSERVED RESULT
Kickoff does not gain said action until after a restart

EXPECTED RESULT
Kickoff should gain the new item immediately

SOFTWARE/OS VERSIONS
Everything git master, but this has been a bug for many versions apparently</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169960</commentid>
    <comment_count>1</comment_count>
    <who name="Volker Kuhlmann">bugz57</who>
    <bug_when>2022-11-07 00:18:49 +0000</bug_when>
    <thetext>I can confirm this behaviour. It is necessary to log out (wasting all effort with laying out the work space), and log in again.

openSUSE 15.4
plasma5-workspace-5.24.4-bp154.2.3.1.x86_64
plasma-framework-5.90.0-bp154.1.42.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392150</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-23 21:23:00 +0000</bug_when>
    <thetext>*** Bug 493445 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392258</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-24 10:48:38 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5114</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392260</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-24 11:11:05 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2748</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392320</commentid>
    <comment_count>5</comment_count>
    <who name="Marco Martin">notmart</who>
    <bug_when>2025-01-24 15:35:19 +0000</bug_when>
    <thetext>Git commit 966d0a953f8e19456526cde624879fa5e07d6bb8 by Marco Martin.
Committed on 24/01/2025 at 15:06.
Pushed by mart into branch &apos;master&apos;.

kcms/ksmserver: remove system restart message

Now the session save behavior change works immediately, remove
the restart system message

M  +0    -27   kcms/ksmserver/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/966d0a953f8e19456526cde624879fa5e07d6bb8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392322</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-24 15:45:21 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2750</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392328</commentid>
    <comment_count>7</comment_count>
    <who name="Marco Martin">notmart</who>
    <bug_when>2025-01-24 16:00:11 +0000</bug_when>
    <thetext>Git commit f304696dd9f231adbfed7adf7846a902610adea5 by Marco Martin.
Committed on 24/01/2025 at 15:45.
Pushed by mart into branch &apos;Plasma/6.3&apos;.

kcms/ksmserver: remove system restart message

Now the session save behavior change works immediately, remove
the restart system message


(cherry picked from commit 966d0a953f8e19456526cde624879fa5e07d6bb8)

966d0a95 kcms/ksmserver: remove system restart message

Co-authored-by: Marco Martin &lt;notmart@gmail.com&gt;

M  +0    -27   kcms/ksmserver/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/f304696dd9f231adbfed7adf7846a902610adea5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392349</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-24 16:44:58 +0000</bug_when>
    <thetext>Git commit 26c4758b900f14e51dec3e703b73ca10941d2222 by Nate Graham, on behalf of Marco Martin.
Committed on 24/01/2025 at 16:44.
Pushed by ngraham into branch &apos;master&apos;.

Watch for changes in session save mode

There was already a canSaveSessionChanged method, but was never used.

This adds a KConfigWatcher on ksmserverrc/General/loginMode and will
emit the canSaveSessionChanged when needed.

This makes the save session entry in Kickoff appear and disappear immediately
after the option has been changed in System Settings
FIXED-IN: 6.3.0

M  +7    -0    libkworkspace/sessionmanagement.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/26c4758b900f14e51dec3e703b73ca10941d2222</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392361</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-24 17:27:12 +0000</bug_when>
    <thetext>Git commit 4fac2f2a44e801bd773a4c954f0c9c211273a2fd by Nate Graham.
Committed on 24/01/2025 at 16:45.
Pushed by ngraham into branch &apos;Plasma/6.3&apos;.

Watch for changes in session save mode

There was already a canSaveSessionChanged method, but was never used.

This adds a KConfigWatcher on ksmserverrc/General/loginMode and will
emit the canSaveSessionChanged when needed.

This makes the save session entry in Kickoff appear and disappear immediately
after the option has been changed in System Settings
FIXED-IN: 6.3.0


(cherry picked from commit 26c4758b900f14e51dec3e703b73ca10941d2222)

0517ea2a Watch for session save mode changes
c8bede90 Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Marco Martin &lt;notmart@gmail.com&gt;

M  +7    -0    libkworkspace/sessionmanagement.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/4fac2f2a44e801bd773a4c954f0c9c211273a2fd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392911</commentid>
    <comment_count>10</comment_count>
    <who name="Marco Martin">notmart</who>
    <bug_when>2025-01-27 15:37:05 +0000</bug_when>
    <thetext>*** Bug 498786 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>