SessionLogoutManager

Does anyone know where to find the documentation on the SessionLogoutManager?
I am trying to use AppleScriptObjC to get the PowerDialog that shows the Shutdown,Sleep,Restart option in one dialog?

This is usually brought up by the Command-Eject or Command-Power buttons on the Mac keyboard.
I am using a third party keyboard that does not have those keys.

Any help would be greatly appreciated.

Just remap it in your system prefs.
Keyboard shortcuts

How about this?

tell application "loginwindow"
	«event aevtrrst»
end tell

or this?


tell application "System Events"
	log out
end tell

Sorry, I already know about those options.

Neither one brings up the full dialog with all three options.
only one option and cancel.

The dialog I’m looking to trigger is the one you get when you (specifically) choose control-eject or control-power buttons.

Also, there is no way to remap it in the control panel.

Thanks

I can not find the Apple’s document for SessionLogoutManager. So, I can not.
It is a private framework within /System/Library/CoreService/loginwindow ?

Use the karabiner app

https://karabiner-elements.pqrs.org/

You should be able to remap
Anything to the control-eject or control-power button