Bug 454367

Summary: While background data transfer to a device is in progress, Reboot/shutdown can be triggered but will be delayed at the TTY
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Disks & Devices widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate
Priority: NOR Keywords: usability
Version First Reported In: 5.27.80   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2022-05-24 21:37:06 UTC
STEPS TO REPRODUCE
1. connect a usb flash drive to usb port
2. copy a big file (I have used a 867 MiB video file in my test) to your flash drive
3. wait for 'Copying (Finished)' notification from Plasma
4. try to reboot or shutdown you computer

OBSERVED RESULT
my system goes to TYY, systemd says 'A stop job is running for Disk Manager (1min 30s countdown)'
and the reboot/shutdown is delayed

EXPECTED RESULT
I'm not sure. Maybe Plasma could prevent reboot/shutdown until the data transfer is completed giving us feedback
about it

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-05-24 21:56:19 UTC
From the end user point of view, 'Copying (Finished)' notification indicates that the data transfer was completed.
Therefore, it's not clear why the reboot/shutdown is delayed after the provided steps.
Comment 2 Nate Graham 2022-05-25 15:46:00 UTC
> Maybe Plasma could prevent reboot/shutdown until the data transfer is completed, giving us feedback about it
Yeah, that's reasonable. This is something that should block shutdown and show feedback IMO.