Opened 16 years ago
Closed 15 years ago
#3418 closed enhancement (fixed)
Addition of GUI/ForceCloseAction extradata item
Reported by: | Terry Ellison | Owned by: | |
---|---|---|---|
Component: | GUI | Version: | VirtualBox 2.1.4 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
See Forum topic graceful shutdown from linux host for the background to this one. The user like a few others in the past have felt that a nice feature to add to the GUI interface would be the ability to force a response avoiding the "Close Virtual Machine" dialogue (typically in the case to savestate). This would simplify logoff and shutdown integration of GUI based VMs running on the desktop. Looking at src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp, this would be a fairly simple change to the logic of VBoxConsoleWnd::closeEvent to add a call to cmachine.GetExtraData for the new parameter and short-circuit logic to bypass display of VBoxCloseVMDlg and process the action immediately.
That's now possible as of VBox 3.2.x. See the 3.2.8 manual, section 9.14 (Locking down the GUI).