Bug 475661

Summary: Instant reboot is disabled because of how 'sudo reboot now' and 'reboot' is incorrectly defined
Product: [I don't know] kde Reporter: nouvel.aubergiste <nouvel.aubergiste>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: CLOSED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nouvel.aubergiste@gmail.com 2023-10-15 13:22:54 UTC
SUMMARY

In a single user desktop, testing this new fully updated Kubuntu installation and before installing apps, the immediate restart from the logout screen worked properly.

After installing apps, I noticed that the immediate restart failed, and must wait the 30 second delay required by the standard 'reboot' command. This, and the attempted installation of themes triggered another related error: https://www.kubuntuforums.net/forum/currently-supported-releases/kubuntu-22-04-jammy-jellyfish/desktop-environment-support/674344-theme-installation-triggers-an-dbus-backend-error

I added [%admin ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff'] to the 'etc/sudoers' file, and defined a custom key.

This lets me reboot instantly, but has no effect on the GUI logout screen
The standard geany access to the system colors are inaccessible, but "sudo geany" the system colors are displayed.

STEPS TO REPRODUCE
Install some themes, or apps randomly, and click Restart on the Main Menu, and then again click Restart on the logout screen.

OBSERVED RESULT
Restart hangs for the required 30 seconds.

EXPECTED RESULT
Restart immediately.

Operating System: Kubuntu 22.04.3
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 6.2.0-33-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Pentium® Gold G6400 CPU @ 4.00GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 610
Comment 1 Nate Graham 2023-10-16 20:13:07 UTC
The "reboot" command isn't involved at all in what the Logout screen does.

The 30-second delay before rebooting comes from KWin, and it's because one or more of your open apps is blocking logout for that time. We should do a better job of showing this to the user; see Bug 441364.

Beyond that, there's nothing we plan to do to change this.
Comment 2 nouvel.aubergiste@gmail.com 2023-10-16 22:38:27 UTC
(In reply to nouvel.aubergiste@gmail.com from comment #0)
> SUMMARY
> 
> In a single user desktop, testing this new fully updated Kubuntu
> installation and before installing apps, the immediate restart from the
> logout screen worked properly.
> 
> After installing apps, I noticed that the immediate restart failed, and must
> wait the 30 second delay required by the standard 'reboot' command. This,
> and the attempted installation of themes triggered another related error:
> https://www.kubuntuforums.net/forum/currently-supported-releases/kubuntu-22-
> 04-jammy-jellyfish/desktop-environment-support/674344-theme-installation-
> triggers-an-dbus-backend-error
> 
> I added [%admin ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff'] to
> the 'etc/sudoers' file, and defined a custom key.
> 
> This lets me reboot instantly, but has no effect on the GUI logout screen
> The standard geany access to the system colors are inaccessible, but "sudo
> geany" the system colors are displayed.
> 
> STEPS TO REPRODUCE
> Install some themes, or apps randomly, and click Restart on the Main Menu,
> and then again click Restart on the logout screen.
> 
> OBSERVED RESULT
> Restart hangs for the required 30 seconds.
> 
> EXPECTED RESULT
> Restart immediately.
> 
> Operating System: Kubuntu 22.04.3
> KDE Plasma Version: 5.24.7
> KDE Frameworks Version: 5.92.0
> Qt Version: 5.15.3
> Kernel Version: 6.2.0-33-generic (64-bit)
> Graphics Platform: X11
> Processors: 4 × Intel® Pentium® Gold G6400 CPU @ 4.00GHz
> Memory: 15.2 GiB of RAM
> Graphics Processor: Mesa Intel® UHD Graphics 610

Thanks for the link, but the problem is the logout delay. The problem is of insufficient user rights!  When using the terminal, I can reboot immediately. If anything was active, I would know about it. 

https://www.kubuntuforums.net/forum/currently-supported-releases/kubuntu-22-04-jammy-jellyfish/desktop-environment-support/673796-how-to-disable-the-30-second-countdown-of-any-departure-from-the-logout-screen/page2#post674023

https://github.com/geany/geany/issues/3601

And the themes' installations errors are the cause disabled user access.