Bug 481938

Summary: Unable to leave session via Desktop menu on Plasma 6.0.0
Product: [KDE Neon] neon Reporter: David R. Bergstein <david.r.bergstein>
Component: generalAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: major CC: abe.kde.bugs, antonioni.rocha, ariel.sanroman, arojas, baldin.jeremy, bassistguy, bizyaev, bugs_kde_org.5.kuru, cagankota, cjdl01, danterpaniagua, davm00, dchmelik, dhruvmaru007, duha.bugs, eugene.savitsky, gautxori5, guimarcalsilva, hartmann.christian, hugolfsimoes, igor.mironchik, igorpadua, jblake, jlp, jr, loris_torikian, lts20050703, mashkal2000, master.homer, mss, nate, neon-bugs, nicolas.fella, p.r.worrall, remarqueze, rjohnson, salonik19a, sitter, snowhg, someanonymousemail2, s_chriscollins, techxgames, terry.forsythe, the_archer_xz, titouan-camus, tomas.nackaerts, valerio.galdo, web, yizel7, zed556
Priority: VHI Keywords: qt6
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=482475
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attachment-2519314-0.html
attachment-2528598-0.html

Description David R. Bergstein 2024-02-28 16:26:12 UTC
STEPS TO REPRODUCE
1. Log in to KDE session.
2. Attempt  to exit via right click menu --> Leave
3. No response is observed.

OBSERVED RESULT
Cannot log out, reboot, shutdown, etc.

EXPECTED RESULT
Log out, reboot, shutdown functions as expected.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 6.5.0-21-generic (64-bit)
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 duha.bugs 2024-02-28 16:36:07 UTC
*** Bug 481939 has been marked as a duplicate of this bug. ***
Comment 2 Duns 2024-02-28 16:42:51 UTC
(In reply to duha.bugs from comment #1)
> *** Bug 481939 has been marked as a duplicate of this bug. ***

same here!
Comment 3 Duns 2024-02-28 16:47:17 UTC
(In reply to Duns from comment #2)
> (In reply to duha.bugs from comment #1)
> > *** Bug 481939 has been marked as a duplicate of this bug. ***
> 
> same here!

and the problem is not only menu, but also keyboard shortcuts. The only way to log out / reboot are the “magic keys”
Comment 4 Nicolas Fella 2024-02-28 17:17:21 UTC
Neon packaging is missing /usr/share/dbus-1/services/org.kde.LogoutPrompt.service
Comment 5 Rich Johnson 2024-02-28 17:45:08 UTC
I've created 2 files in /usr/share/dbus-1/services to make my Restart, Shutdown & Logout work again:

$ cat org.kde.Shutdown.service 
[D-BUS Service]
Name=org.kde.Shutdown
Exec=/usr/bin/plasma-shutdown

$ cat org.kde.LogoutPrompt.service 
[D-BUS Service]
Name=org.kde.LogoutPrompt
Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
Comment 6 Duns 2024-02-28 17:57:17 UTC
ok, it works.
However I hope the problem will be solved for all users next update.
Comment 7 Çağan 2024-02-28 20:17:37 UTC
It might be related, running KRunner with Alt+F2 doesn't work either. ".service" files missing
Comment 8 Nicolas Fella 2024-02-28 20:47:51 UTC
*** Bug 481957 has been marked as a duplicate of this bug. ***
Comment 9 Alex Parker 2024-02-28 21:08:38 UTC
(In reply to Rich Johnson from comment #5)

Rich, you are the great lifesaver. Thank you, now I can do logout and reboot without a shutting down my laptop manually from electricity :-D

I can confirm the bug. I've upgraded today via Discover as usual — and now Plasma works without of some functionality. 
Also, KRunner not works, as Çağan tolds. And Dolphin settings for custom font inaccessible now (nor mouse neither keyboard working to choose font family or size or other). KClock icon in system tray not working too. Don't remember all, but many times I've clicked different icons and settings and I've got a system alert message "Report this to developer of <some program>". And Discover now not showing installed packages from repos and snaps, only flatpaks. Excuse me for such out-of-theme bug-report, I'm in sad mood today and this is my first visit to kde bugtracker for many years.
Comment 10 Rich Johnson 2024-02-28 21:23:43 UTC
(In reply to someanonymousemail2 from comment #9)
> (In reply to Rich Johnson from comment #5)
> 
> Rich, you are the great lifesaver. Thank you, now I can do logout and reboot
> without a shutting down my laptop manually from electricity :-D
> 
> I can confirm the bug. I've upgraded today via Discover as usual — and now
> Plasma works without of some functionality. 
> Also, KRunner not works, as Çağan tolds. And Dolphin settings for custom
> font inaccessible now (nor mouse neither keyboard working to choose font
> family or size or other). KClock icon in system tray not working too. Don't
> remember all, but many times I've clicked different icons and settings and
> I've got a system alert message "Report this to developer of <some
> program>". And Discover now not showing installed packages from repos and
> snaps, only flatpaks. Excuse me for such out-of-theme bug-report, I'm in sad
> mood today and this is my first visit to kde bugtracker for many years.

https://bugs.kde.org/show_bug.cgi?id=481940#c2  <-- this will fix krunner for you too. Thanks to Duha on discuss.kde.org for helping!
Comment 11 Alex Parker 2024-02-28 21:44:39 UTC
(In reply to Rich Johnson from comment #10)
> https://bugs.kde.org/show_bug.cgi?id=481940#c2  <-- this will fix krunner
> for you too. Thanks to Duha on discuss.kde.org for helping!

Yeah, it works now after applying actions you've recommended. Thanks to Duha and you!
Comment 12 Nicolas Fella 2024-02-28 22:10:01 UTC
*** Bug 481971 has been marked as a duplicate of this bug. ***
Comment 13 jblake 2024-02-29 01:09:11 UTC
*** Bug 481983 has been marked as a duplicate of this bug. ***
Comment 14 fanzhuyifan 2024-02-29 02:26:52 UTC
*** Bug 481981 has been marked as a duplicate of this bug. ***
Comment 15 Titouan Camus 2024-02-29 07:19:47 UTC
*** Bug 481991 has been marked as a duplicate of this bug. ***
Comment 16 baldin jeremy 2024-02-29 07:43:00 UTC
impossible d’arrêter ou redémarrer le système a partir du menu Seul la mise en veille fonctionne après la mise a jour vers plasma
Comment 17 Titouan Camus 2024-02-29 08:03:56 UTC
*** Bug 481998 has been marked as a duplicate of this bug. ***
Comment 18 Titouan Camus 2024-02-29 08:21:02 UTC
*** Bug 482000 has been marked as a duplicate of this bug. ***
Comment 19 Titouan Camus 2024-02-29 08:36:24 UTC
*** Bug 481990 has been marked as a duplicate of this bug. ***
Comment 20 Mathias Tillman 2024-02-29 09:31:07 UTC
Can confirm this when upgrading to 6.0 on the user branch. Looks like the whole /usr/share/dbus-1 directory is missing in the build66 package of plasma-workspace. It does exist in build65, however, so something must have happened in-between build66 and build65 that has caused it to not be included anymore.
Comment 21 Silent 2024-02-29 12:11:39 UTC
Can confirm this issue after upgrade to 6.0. Reboot/shutdown works from user change screen, but not from menu.
Comment 22 Ariel San Román 2024-02-29 12:24:48 UTC
(In reply to Rich Johnson from comment #5)

Thank you for your time! I was able to solve it following your instructions!!!
Comment 23 Çağan 2024-02-29 12:28:04 UTC
will the fix come with 6.0.1? will it require a clean install?
Comment 24 Antonio Rojas 2024-02-29 13:02:22 UTC
*** Bug 482020 has been marked as a duplicate of this bug. ***
Comment 25 Christian Hartmann 2024-02-29 13:49:00 UTC
confirmed. files mentioned by Rich are missing in a fresh neon install.
Comment 26 Sean 2024-02-29 13:50:51 UTC
(In reply to Rich Johnson from comment #5)
> I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> Shutdown & Logout work again:
> 
> $ cat org.kde.Shutdown.service 
> [D-BUS Service]
> Name=org.kde.Shutdown
> Exec=/usr/bin/plasma-shutdown
> 
> $ cat org.kde.LogoutPrompt.service 
> [D-BUS Service]
> Name=org.kde.LogoutPrompt
> Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter


Thanks Rich Johnson, this works perfectly (for the other noobs out there I created the file in Kate and just saved to the correct directly specified by Rich)
Comment 27 Chris 2024-02-29 14:37:57 UTC
(In reply to Sean from comment #26)
> (In reply to Rich Johnson from comment #5)
> > I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> > Shutdown & Logout work again:
> > 
> > $ cat org.kde.Shutdown.service 
> > [D-BUS Service]
> > Name=org.kde.Shutdown
> > Exec=/usr/bin/plasma-shutdown
> > 
> > $ cat org.kde.LogoutPrompt.service 
> > [D-BUS Service]
> > Name=org.kde.LogoutPrompt
> > Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> 
> 
> Thanks Rich Johnson, this works perfectly (for the other noobs out there I
> created the file in Kate and just saved to the correct directly specified by
> Rich)

Thank you for that.  Exactly what I needed.
Comment 28 Dante Paniagua 2024-02-29 18:18:36 UTC
(In reply to David R. Bergstein from comment #0)
> STEPS TO REPRODUCE
> 1. Log in to KDE session.
> 2. Attempt  to exit via right click menu --> Leave
> 3. No response is observed.
> 
> OBSERVED RESULT
> Cannot log out, reboot, shutdown, etc.
> 
> EXPECTED RESULT
> Log out, reboot, shutdown functions as expected.
> 
> SOFTWARE/OS VERSIONS
> Windows: N/A
> macOS: N/A
> Linux/KDE Plasma: 6.5.0-21-generic (64-bit)
> (available in About System)
> KDE Plasma Version: 6.0.0
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.2
> 
> ADDITIONAL INFORMATION

Same problem here.
Comment 29 yizel7 2024-02-29 18:49:31 UTC
was this a packaging issue specific to kde neon for 6.0.0? how does something so basic get missed from months of testing?
Comment 30 techxgames 2024-02-29 20:00:01 UTC
(In reply to yizel7 from comment #29)
> was this a packaging issue specific to kde neon for 6.0.0? how does
> something so basic get missed from months of testing?

the thing is that this issue wasn't in Neon Unstable (I know cuz I have it at home)
Comment 31 Paul L. 2024-02-29 20:36:54 UTC
(In reply to Rich Johnson from comment #5)
> I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> Shutdown & Logout work again:
> 
> $ cat org.kde.Shutdown.service 
> [D-BUS Service]
> Name=org.kde.Shutdown
> Exec=/usr/bin/plasma-shutdown
> 
> $ cat org.kde.LogoutPrompt.service 
> [D-BUS Service]
> Name=org.kde.LogoutPrompt
> Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter

I upgraded my KDE neon User Edition this morning to the shiny new Plasma 6. I have applied this 'fix', but the actions still don't execute when the icons are clicked. I've triple checked that I wrote the files correctly. I have even rebooted from the command line and still the icons don't function.
Comment 32 the_archer_xz 2024-02-29 21:06:43 UTC
(In reply to Paul L. from comment #31)
> (In reply to Rich Johnson from comment #5)
> > I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> > Shutdown & Logout work again:
> > 
> > $ cat org.kde.Shutdown.service 
> > [D-BUS Service]
> > Name=org.kde.Shutdown
> > Exec=/usr/bin/plasma-shutdown
> > 
> > $ cat org.kde.LogoutPrompt.service 
> > [D-BUS Service]
> > Name=org.kde.LogoutPrompt
> > Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> 
> I upgraded my KDE neon User Edition this morning to the shiny new Plasma 6.
> I have applied this 'fix', but the actions still don't execute when the
> icons are clicked. I've triple checked that I wrote the files correctly. I
> have even rebooted from the command line and still the icons don't function.

I did the exact same thing. Manually rebooted via command line after adding those service files.
Comment 33 jblake 2024-03-01 01:49:22 UTC
The "commands" in services did not work for me either. Originally had neonuser stable from October 2023. No warning that Plasma 6 was going to be installed. Tried latest stable release of neonuser 29.02.2024 and same issue in live mode using Ventoy. Testing issued a few days before stable failed to boot at all with Ventoy in live mode. Thinking of ditching neonuser and go back to MX-Linux 23.1 KDE.(In reply to lin.ackles@pm.me from comment #32)
> (In reply to Paul L. from comment #31)
> > (In reply to Rich Johnson from comment #5)
> > > I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> > > Shutdown & Logout work again:
> > > 
> > > $ cat org.kde.Shutdown.service 
> > > [D-BUS Service]
> > > Name=org.kde.Shutdown
> > > Exec=/usr/bin/plasma-shutdown
> > > 
> > > $ cat org.kde.LogoutPrompt.service 
> > > [D-BUS Service]
> > > Name=org.kde.LogoutPrompt
> > > Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> > 
> > I upgraded my KDE neon User Edition this morning to the shiny new Plasma 6.
> > I have applied this 'fix', but the actions still don't execute when the
> > icons are clicked. I've triple checked that I wrote the files correctly. I
> > have even rebooted from the command line and still the icons don't function.
> 
> I did the exact same thing. Manually rebooted via command line after adding
> those service files.

Same here. I think neonuser stable is now severely broken. Going back to MX-Linux 23.1 KDE or even Devuan 5.0.
Comment 34 Terry Forsythe 2024-03-01 03:12:37 UTC
The solution partially works for me.

1.  Restart and Shutdown work, so long as I first do not try to logout.

2.  Logout does not work.

3.  If I first try to logout, which fails, restart and shutdown stop working from the GUI.  Restart and shutdown only work from the terminal.
Comment 35 the_archer_xz 2024-03-01 03:22:52 UTC
(In reply to Terry Forsythe from comment #34)
> The solution partially works for me.
> 
> 1.  Restart and Shutdown work, so long as I first do not try to logout.
> 
> 2.  Logout does not work.
> 
> 3.  If I first try to logout, which fails, restart and shutdown stop working
> from the GUI.  Restart and shutdown only work from the terminal.

For this, Krunner has become my best friend (after getting that at least working). So, I can issue the "reboot" or "shutdown now" command from there. And for a sly way of logging out, you can make a shortcut in the app launcher with the command, "systemctl" along with the argument "restart sddm". That will bring you back to the login screen. And that's what I do if I need any of that for now. The lock screen works. So, that's good.

But thankfully, I'm rarely doing any of that. Well, at least the desktop is mostly stable. Only when I was upgrading Flatpak apps via Discover did plasmashell crash... Seems like I was lucky compared to some others were the desktop won't even start. Honestly, I am glad I stopped the auto updates all running the same 'distro'; KDE neon. Because those issues with the session buttons don't work even when I run a fresh copy of KDE Neon on the virtual machine with this version of Plasma.
Comment 36 Paul L. 2024-03-01 03:56:16 UTC
(In reply to Paul L. from comment #31)
> (In reply to Rich Johnson from comment #5)
> > I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> > Shutdown & Logout work again:
> > 
> > $ cat org.kde.Shutdown.service 
> > [D-BUS Service]
> > Name=org.kde.Shutdown
> > Exec=/usr/bin/plasma-shutdown
> > 
> > $ cat org.kde.LogoutPrompt.service 
> > [D-BUS Service]
> > Name=org.kde.LogoutPrompt
> > Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> 
> I upgraded my KDE neon User Edition this morning to the shiny new Plasma 6.
> I have applied this 'fix', but the actions still don't execute when the
> icons are clicked. I've triple checked that I wrote the files correctly. I
> have even rebooted from the command line and still the icons don't function.

Slap myself in the face! A simple omission of a letter s in Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter was my undoing! I omitted the s in ksmserver (had it spelled ksmerver). With that correction, all my logout options work. Note to self (for the umpteenth time): Don't proof read your own work!
Comment 37 the_archer_xz 2024-03-01 05:26:31 UTC
> Slap myself in the face! A simple omission of a letter s in
> Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter was my
> undoing! I omitted the s in ksmserver (had it spelled ksmerver). With that
> correction, all my logout options work. Note to self (for the umpteenth
> time): Don't proof read your own work!

Mine is correct. And for some reason, my restart, shutdown and logout buttons still don't work.
Comment 38 Adrien Beau 2024-03-01 05:50:06 UTC
*** Bug 482103 has been marked as a duplicate of this bug. ***
Comment 39 mashkal2000@gmail.com 2024-03-01 06:19:14 UTC
How do I exit ~~vim~~ plasma 6?

(What are these magic hotkeys everyone is talking about?)
Comment 40 Nate Graham 2024-03-01 06:49:49 UTC
*** Bug 482114 has been marked as a duplicate of this bug. ***
Comment 41 Gau 2024-03-01 07:17:58 UTC
(In reply to Rich Johnson from comment #5)
> I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> Shutdown & Logout work again:
> 
> $ cat org.kde.Shutdown.service 
> [D-BUS Service]
> Name=org.kde.Shutdown
> Exec=/usr/bin/plasma-shutdown
> 
> $ cat org.kde.LogoutPrompt.service 
> [D-BUS Service]
> Name=org.kde.LogoutPrompt
> Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter

Can you explain for novice users step by step how to create the files?
I can't get it to work
Comment 42 Titouan Camus 2024-03-01 07:59:57 UTC
*** Bug 482120 has been marked as a duplicate of this bug. ***
Comment 43 mashkal2000@gmail.com 2024-03-01 08:02:40 UTC
I found an easier workaround: use the "switch user" button. Normally it doesn't let you shutdown or do other actions like that, but for some reason it acts like the log out button now. Not sure if that's intentional or not. Just shutdown/restart/do what you need to do from the login screen.
Comment 44 David Chmelik 2024-03-01 09:10:26 UTC
I have the same problem on KDE(P)6 Neon and recall same problem on KDE(P)5 (Slackware, Neon, etc.).  I don't see how to create the files for these entries.
Comment 45 Antonio Rojas 2024-03-01 11:22:42 UTC
*** Bug 482138 has been marked as a duplicate of this bug. ***
Comment 46 jblake 2024-03-01 11:25:40 UTC
(In reply to Gau from comment #41)
> (In reply to Rich Johnson from comment #5)
> > I've created 2 files in /usr/share/dbus-1/services to make my Restart,
> > Shutdown & Logout work again:
> > 
> > $ cat org.kde.Shutdown.service 
> > [D-BUS Service]
> > Name=org.kde.Shutdown
> > Exec=/usr/bin/plasma-shutdown
> > 
> > $ cat org.kde.LogoutPrompt.service 
> > [D-BUS Service]
> > Name=org.kde.LogoutPrompt
> > Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> 
> Can you explain for novice users step by step how to create the files?
> I can't get it to work

Open Konsole (terminal) and navigate to /usr/share/dbus-1/services. Then
sudo nano org.kde.Shutdown.service
When the text editor opens type in (or copy and paste) the Name= and Exec= scripts. Save the changes with Ctrl+ O and exit with Ctrl+ X.
Comment 47 Valerio Galdo 2024-03-01 11:59:27 UTC
(In reply to Duns from comment #6)
> ok, it works.
> However I hope the problem will be solved for all users next update.

Yes, it will be right! Not everyone can do these corrections...
Comment 48 Valerio Galdo 2024-03-01 12:42:23 UTC
...and anyway it works only the first time
Comment 49 jblake 2024-03-01 13:34:07 UTC
(In reply to Valerio Galdo from comment #48)
> ...and anyway it works only the first time

It has never worked for me.(In reply to David R. Bergstein from comment #0)
> STEPS TO REPRODUCE
> 1. Log in to KDE session.
> 2. Attempt  to exit via right click menu --> Leave
> 3. No response is observed.
> 
> OBSERVED RESULT
> Cannot log out, reboot, shutdown, etc.
> 
> EXPECTED RESULT
> Log out, reboot, shutdown functions as expected.
> 
> SOFTWARE/OS VERSIONS
> Windows: N/A
> macOS: N/A
> Linux/KDE Plasma: 6.5.0-21-generic (64-bit)
> (available in About System)
> KDE Plasma Version: 6.0.0
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.2
> 
> ADDITIONAL INFORMATION

It has never worked for me.(In reply to David R. Bergstein from comment #0)
> STEPS TO REPRODUCE
> 1. Log in to KDE session.
> 2. Attempt  to exit via right click menu --> Leave
> 3. No response is observed.
> 
> OBSERVED RESULT
> Cannot log out, reboot, shutdown, etc.
> 
> EXPECTED RESULT
> Log out, reboot, shutdown functions as expected.
> 
> SOFTWARE/OS VERSIONS
> Windows: N/A
> macOS: N/A
> Linux/KDE Plasma: 6.5.0-21-generic (64-bit)
> (available in About System)
> KDE Plasma Version: 6.0.0
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.2
> 
> ADDITIONAL INFORMATION

It has never worked for me
Comment 50 Nate Graham 2024-03-01 14:27:45 UTC
Please stop changing the status of this bug report.
Comment 51 Dav84 2024-03-01 16:33:55 UTC
Yesterday I updated to version 6 of Plasma and after the system restart the restart and shutdown buttons from the applications menu simply do not work, they are dead... I have to turn off via terminal,2-the taskbar takes forever.. to appear when you turn on the PC, something that didn't happen before...3-something that is not a bug but seems like a setback to me is opening folders with a double click? I don't understand how one less click to open files or folders affects the system. At least they should provide the option for the user to choose from one click or double click, as it was before, that small detail seems like a step backwards to me.
Comment 52 Harald Sitter 2024-03-01 16:44:09 UTC
Should be fixed in latest snapshot.
Comment 53 Titouan Camus 2024-03-01 17:09:13 UTC
(In reply to Dav84 from comment #51)
> Yesterday I updated to version 6 of Plasma and after the system restart the
> restart and shutdown buttons from the applications menu simply do not work,
> they are dead... I have to turn off via terminal,2-the taskbar takes
> forever.. to appear when you turn on the PC, something that didn't happen
> before...3-something that is not a bug but seems like a setback to me is
> opening folders with a double click? I don't understand how one less click
> to open files or folders affects the system. At least they should provide
> the option for the user to choose from one click or double click, as it was
> before, that small detail seems like a step backwards to me.

You can go back to one click to open in the system settings -general behaviour.
Comment 54 Terry Forsythe 2024-03-01 17:23:48 UTC
(In reply to lin.ackles@pm.me from comment #35)
> (In reply to Terry Forsythe from comment #34)
> > The solution partially works for me.
> > 
> > 1.  Restart and Shutdown work, so long as I first do not try to logout.
> > 
> > 2.  Logout does not work.
> > 
> > 3.  If I first try to logout, which fails, restart and shutdown stop working
> > from the GUI.  Restart and shutdown only work from the terminal.
> 
> For this, Krunner has become my best friend (after getting that at least
> working). So, I can issue the "reboot" or "shutdown now" command from there.
> And for a sly way of logging out, you can make a shortcut in the app
> launcher with the command, "systemctl" along with the argument "restart
> sddm". That will bring you back to the login screen. And that's what I do if
> I need any of that for now. The lock screen works. So, that's good.
> 
> But thankfully, I'm rarely doing any of that. Well, at least the desktop is
> mostly stable. Only when I was upgrading Flatpak apps via Discover did
> plasmashell crash... Seems like I was lucky compared to some others were the
> desktop won't even start. Honestly, I am glad I stopped the auto updates all
> running the same 'distro'; KDE neon. Because those issues with the session
> buttons don't work even when I run a fresh copy of KDE Neon on the virtual
> machine with this version of Plasma.

Thank you for the suggestions.

Regarding the shortcut key, I have a shortcut setup to restart using F10.  It has been working for years, but after the update that shortcut stopped working.  I need to dig into that one too.
Comment 55 jblake 2024-03-01 20:14:20 UTC
Updates from kdeneon via Discover have now resolved this issue for me.
Comment 56 Ramon Marquez 2024-03-01 21:28:41 UTC
(In reply to jblake from comment #55)
> Updates from kdeneon via Discover have now resolved this issue for me.

Has the bug that prevented you from shutting down, restarting and logging out from their respective buttons been resolved?
Comment 57 Titouan Camus 2024-03-01 21:36:13 UTC
(In reply to Ramon Marquez from comment #56)
> (In reply to jblake from comment #55)
> > Updates from kdeneon via Discover have now resolved this issue for me.
> 
> Has the bug that prevented you from shutting down, restarting and logging
> out from their respective buttons been resolved?

Yes for me
Comment 58 the_archer_xz 2024-03-01 21:41:51 UTC
I just updated to build 35. And still this issue persists on KDE Neon.
Comment 59 the_archer_xz 2024-03-01 21:46:27 UTC
> Thank you for the suggestions.
> 
> Regarding the shortcut key, I have a shortcut setup to restart using F10. 
> It has been working for years, but after the update that shortcut stopped
> working.  I need to dig into that one too.

It's apparently set as ctrl+shift+n now. I guess you can change it back to F10
Comment 60 the_archer_xz 2024-03-01 21:50:23 UTC
(In reply to lin.ackles@pm.me from comment #58)
> I just updated to build 35. And still this issue persists on KDE Neon.

I meant to say build 52 of the Plasma-Desktop, according to Synaptics. Now Discover is crashing if I search up a package...
Comment 61 Dav84 2024-03-01 23:44:15 UTC
Created attachment 166282 [details]
attachment-2519314-0.html

Correct, thanks now the buttons work normally thanks to the community for such a quick response to the problem and solution and for those of us who were affected.

𝓓𝓪𝓿𝓜.

Enviado desde Proton Mail móvil

-------- Mensaje original --------
El 1 de marzo de 2024 3:28 p. m., Ramon Marquez escribió:

> https://bugs.kde.org/show_bug.cgi?id=481938 --- Comment #56 from Ramon Marquez  --- (In reply to jblake from comment #55) > Updates from kdeneon via Discover have now resolved this issue for me. Has the bug that prevented you from shutting down, restarting and logging out from their respective buttons been resolved? -- You are receiving this mail because: You are on the CC list for the bug.
Comment 62 Dm 2024-03-02 00:25:07 UTC
(In reply to lin.ackles@pm.me from comment #58)
> I just updated to build 35. And still this issue persists on KDE Neon.

For me, the reboot from terminal helped (systemctl reboot)
Comment 63 the_archer_xz 2024-03-02 00:32:05 UTC
> For me, the reboot from terminal helped (systemctl reboot)

I just hit alt+f2 to open Krunner (after I got Krunner working again). I just type in reboot and auto complete it with a tab. Then hit enter. It works for now.
Comment 64 Dav84 2024-03-02 01:16:56 UTC
Created attachment 166283 [details]
attachment-2528598-0.html

Thanks, in my case I updated a few hours ago and the buttons now work normally, you can use shutdown -r now to restart or shutdown -h now to turn off.

𝓓𝓪𝓿𝓜.

Enviado desde Proton Mail móvil

-------- Mensaje original --------
El 1 de marzo de 2024 6:25 p. m., Dm escribió:

> https://bugs.kde.org/show_bug.cgi?id=481938 Dm  changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dvs-1111@yandex.ru --- Comment #62 from Dm  --- (In reply to lin.ackles@pm.me from comment #58) > I just updated to build 35. And still this issue persists on KDE Neon. For me, the reboot from terminal helped (systemctl reboot) -- You are receiving this mail because: You are on the CC list for the bug.
Comment 65 Ramon Marquez 2024-03-02 01:39:34 UTC
The error that prevented shutdown, restart and log out through their respective buttons in the application launcher was already resolved in the recent update (which is available in Discover). Greatly grateful for the quick solution and for me, you can close this and all duplicate tickets. :)
Comment 66 the_archer_xz 2024-03-02 02:55:55 UTC
(In reply to Ramon Marquez from comment #65)
> The error that prevented shutdown, restart and log out through their
> respective buttons in the application launcher was already resolved in the
> recent update (which is available in Discover). Greatly grateful for the
> quick solution and for me, you can close this and all duplicate tickets. :)

I updated recently today. And still those buttons don't work for me on KDE Neon.
Comment 67 the_archer_xz 2024-03-02 05:46:51 UTC
Never mind. I figured it out. I had to delete all my desktop configs to make the buttons work. Literally was a pain to do my settings all over again. It now works on KDE Neon.
Comment 68 zed556@gmail.com 2024-03-02 09:13:16 UTC
Hello,
first of all, many thanks to the developers for their work. After solving the shutdown, restart and exit problems by adding two files to usr/share (thanks to Bruno for this), I still have two problems:
- Discover can only be opened once per session
- LibreOffice integration is missing.
Thanks for future solutions.
Comment 69 jblake 2024-03-02 09:30:00 UTC
(In reply to Ramon Marquez from comment #56)
> (In reply to jblake from comment #55)
> > Updates from kdeneon via Discover have now resolved this issue for me.
> 
> Has the bug that prevented you from shutting down, restarting and logging
> out from their respective buttons been resolved?

Yes it is now working again as it should. Good job TeamKDE!
Comment 70 Terry Forsythe 2024-03-05 14:36:42 UTC
Logout still is not working for me (though restart and shutdown are working).  When I select logout from the menu, the popup menu is presented, but when I select logout from the popup menu nothing happens.  If I let the timer count down, nothing happens.  If I select "OK" nothing happens.

To resolve this issue I have applied all updates, and I have tried the following, neither of which work:

1.  Creating /usr/share/dbus-1/services/org.kde.LogoutPrompt.service with the following code:
 [D-BUS Service]
 Name=org.kde.LogoutPrompt
 Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter

and

2.  Renaming my old desktop configuration to be a backup and letting Plasma create a new default desktop configuration.

Also, after selecting the logout icon from the menu once or twice, the popup menu stops coming up.  So, it seems like something is happening in the background, but hanging.

Mine is not a fresh Neon installation, it was automatically updated from the previous version.
Comment 71 Harald Sitter 2024-03-05 14:48:55 UTC
Please file a new bug.
Comment 72 the_archer_xz 2024-03-05 21:28:14 UTC
(In reply to Terry Forsythe from comment #70)
> Logout still is not working for me (though restart and shutdown are
> working).  When I select logout from the menu, the popup menu is presented,
> but when I select logout from the popup menu nothing happens.  If I let the
> timer count down, nothing happens.  If I select "OK" nothing happens.
> 
> To resolve this issue I have applied all updates, and I have tried the
> following, neither of which work:
> 
> 1.  Creating /usr/share/dbus-1/services/org.kde.LogoutPrompt.service with
> the following code:
>  [D-BUS Service]
>  Name=org.kde.LogoutPrompt
>  Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> 
> and
> 
> 2.  Renaming my old desktop configuration to be a backup and letting Plasma
> create a new default desktop configuration.
> 
> Also, after selecting the logout icon from the menu once or twice, the popup
> menu stops coming up.  So, it seems like something is happening in the
> background, but hanging.
> 
> Mine is not a fresh Neon installation, it was automatically updated from the
> previous version.

Strange. I just deleted the file ~/.config/startkderc and it fixed the issue. Because I even had this issue after updating to the fixed version on all of my computers. That file was the cause of my issue.
Comment 73 Terry Forsythe 2024-03-05 22:11:57 UTC
(In reply to lin.ackles@pm.me from comment #72)
> (In reply to Terry Forsythe from comment #70)
> > Logout still is not working for me (though restart and shutdown are
> > working).  When I select logout from the menu, the popup menu is presented,
> > but when I select logout from the popup menu nothing happens.  If I let the
> > timer count down, nothing happens.  If I select "OK" nothing happens.
> > 
> > To resolve this issue I have applied all updates, and I have tried the
> > following, neither of which work:
> > 
> > 1.  Creating /usr/share/dbus-1/services/org.kde.LogoutPrompt.service with
> > the following code:
> >  [D-BUS Service]
> >  Name=org.kde.LogoutPrompt
> >  Exec=/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout-greeter
> > 
> > and
> > 
> > 2.  Renaming my old desktop configuration to be a backup and letting Plasma
> > create a new default desktop configuration.
> > 
> > Also, after selecting the logout icon from the menu once or twice, the popup
> > menu stops coming up.  So, it seems like something is happening in the
> > background, but hanging.
> > 
> > Mine is not a fresh Neon installation, it was automatically updated from the
> > previous version.
> 
> Strange. I just deleted the file ~/.config/startkderc and it fixed the
> issue. Because I even had this issue after updating to the fixed version on
> all of my computers. That file was the cause of my issue.

Thank you!  That solved my issue.  Logout now works.
Comment 74 the_archer_xz 2024-03-05 22:16:09 UTC
> Thank you!  That solved my issue.  Logout now works.

Great. So, keep that in mind if wanting to keep the old Plasma configs. Now I wish I didn't delete all my configs and went through the trouble of redoing all of my settings. But, oh well. I was able to avoid that on the other machines that all run Neon as well.
Comment 75 Duns 2024-03-06 10:15:55 UTC
Today this bug was again back to my PC.
Comment 76 Duns 2024-03-08 07:38:58 UTC
I noticed that the problem was for an *user* (even my main :( ), not for all others. And so I solved, creating a new main user and transferring all settings to it.
Comment 77 loris_torikian 2024-03-18 22:08:32 UTC
I am experiencing the same issue, logs from KDE are showing `org.kde.plasma.shutdown: KWin failed to complete logout`. Weird thing is that I am using i3 as a window manager, so I think KWin should not be running.
Comment 78 Dhruv Maroo 2024-06-11 19:13:35 UTC
(In reply to loris_torikian from comment #77)
> I am experiencing the same issue, logs from KDE are showing
> `org.kde.plasma.shutdown: KWin failed to complete logout`. Weird thing is
> that I am using i3 as a window manager, so I think KWin should not be
> running.

Have a look at Bug #488277.