LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1067|回复: 5

openbox里怎么实现xfce4里那样的退出效果

[复制链接]
发表于 2009-4-10 16:31:43 | 显示全部楼层 |阅读模式
rt,点击“注销”后会弓单出一个小窗口--上面有注销、关机、重启、睡眠、休眠几个按钮,同时外部内容变暗。

------------------------
P.S. 现在论坛里国旅的也太多了。
发表于 2009-4-10 23:09:46 | 显示全部楼层
安装x11-libs/gksu

设置openbox menu(可以使用GUI的obmenu)
  1. lee@lab /home/share/music $ cat ~/.config/openbox/menu.xml | grep gksu
  2.                                                 gksu emacs /etc/X11/xorg.conf
  3.                                                 gksu emacs /etc/X11/xinit/xinitrc
  4.                                                 gksu emacs /boot/grub/menu.lst
  5.                                         gksu '/sbin/shutdown -r now'
  6.                                         gksu '/sbin/shutdown -h now'
  7. lee@lab /home/share/music $
复制代码

我以前发过帖子关于openbox具体设置
要完整配置文件,请搜索
或者上http://code.google.com/p/egentoo/的wiki上找openbox
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-10 23:21:08 | 显示全部楼层
看来我没说清楚,我是说那个关机的框 -- 上面有注销、关机、重启、睡眠、休眠几个按钮的,看起来很爽啊。
回复 支持 反对

使用道具 举报

发表于 2009-4-11 09:00:36 | 显示全部楼层
使用sudo添加
user ALL=(root) NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper

另外2楼的链接开不了,建议给链接的时候前后用空格隔开
回复 支持 反对

使用道具 举报

发表于 2009-4-11 11:25:32 | 显示全部楼层
那个框是xfce4-session的功能
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-11 13:12:03 | 显示全部楼层
Post by nonplus;1972702
使用sudo添加
user ALL=(root) NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper

另外2楼的链接开不了,建议给链接的时候前后用空格隔开

这个我知道,而且路径是“/usr/libexec/xfsm-shutdown-helper”。
Post by dkeehl;1972750
那个框是xfce4-session的功能

其实是xfce4-session-logout这个命令,但是在openbox下会弓单出一个框:
  1. Failed to receive a reply from the session manager
  2. The name org.xfce.SessionManager was not provided by any .service files
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表