1

是否可以以编程方式从我的 OSX 应用程序关闭用户会话?

谢谢你的帮助。

4

1 回答 1

0
skill -KILL -u `whoami`

This should logout the current user, though there might be better ways of doing this.

于 2013-06-21T18:44:31.463 回答