谁能告诉我图形界面的注销命令?
Tofloor
poster avatar
chengyb
deepin
2019-12-17 01:14
Author
谁能告诉我图形界面的注销命令?不是logout。网上搜到了Ubuntu调用注销文件: /usr/bin/gnome-session-quit,亲测有效,在deepin里找了找,没找到类似的,只找到了dde-lock,锁定有效,有谁知道,或者官方的小哥哥告诉一下?
Reply Favorite View the author
All Replies
avatar
观摩
deepin
2019-12-17 01:29
#1
有个 dde-shutdown ,可惜只是调出注销、关机界面,没有选项可供直接注销
Reply View the author
avatar
走钢丝
deepin
2019-12-17 01:55
#2
找了下,似乎是这个吧:
  1. dbus-send --print-reply --dest=com.deepin.SessionManager /com/deepin/SessionManager com.deepin.SessionManager.ForceLogout
Copy the Code
Reply View the author
avatar
chengyb
deepin
2019-12-17 05:08
#3
本帖最后由 chengyb 于 2019-12-16 21:15 编辑
https://bbs.deepin.org/post/187009
找了下,似乎是这个吧:

My God! 这么长!

系统初次登录是在tty1上打开的图形界面,用系统的注销可以退出图形界面切换到命令行界面,你这个执行完以后,原先的tty1变成了始终是闪烁的光标即不可登录状态,另外在tty2上启动了图形登录界面。

Reply View the author
avatar
走钢丝
deepin
2019-12-17 05:38
#4
https://bbs.deepin.org/post/187009
My God! 这么长!

系统初次登录是在tty1上打开的图形界面,用系统的注销可以退出图形界面切换到命令行界 ...

问题是你在哪个终端执行的命令?还有 tty 上打开了几个终端。
Reply View the author
avatar
chengyb
deepin
2019-12-17 06:04
#5
https://bbs.deepin.org/post/187009
问题是你在哪个终端执行的命令?还有 tty 上打开了几个终端。

就在图形界面启动的终端tty1,用系统的注销命令仍退回到这个终端;执行你上面的命令后tty1不响应了,tty2上有了图形登录界面。tty2-tty6都能登,但我都没登,只是切换的看看。
Reply View the author
avatar
走钢丝
deepin
2019-12-17 06:18
#6
https://bbs.deepin.org/post/187009
就在图形界面启动的终端tty1,用系统的注销命令仍退回到这个终端;执行你上面的命令后tty1不响应了,tty2 ...

也许是这个?
  1. dbus-send --print-reply --dest=com.deepin.SessionManager /com/deepin/SessionManager com.deepin.SessionManager.RequestLogout
Copy the Code
Reply View the author
avatar
jacklee_2018
deepin
2019-12-17 09:16
#7
sudo service lightdm stop  \\关闭x server
sudo service lightdm start  \\开启x server
Reply View the author
avatar
chengyb
deepin
2019-12-22 10:43
#8

厉害!你是怎么做到的。


吐槽一下,深度的验证码真不是给人看的,十次能看清楚一次。
Reply View the author