我希望 PC 在没有任何对话的情况下关闭,但让应用程序有时间正确关闭。
一种解决方案是更改powerbtn.sh为:shutdown -h now但这不会等待所有应用程序关闭。
powerbtn.sh
shutdown -h now
shutdown
shutdown ×1