LinuxSir.cn,穿越时空的Linuxsir!

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

tomboy 在非 gnome桌面下,运行出错 Unable to open the session message bus. 解

[复制链接]
发表于 2010-12-16 09:38:24 | 显示全部楼层 |阅读模式
在非gnome桌面下(如awesome等),运行tomboy报以下错误:
[PHP]
$ tomboy

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] in <filename unknown>:0
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  at NDesk.DBus.BusG.Init () [0x00000] in <filename unknown>:0
  at Tomboy.GnomeApplication.Initialize (System.String locale_dir, System.String display_name, System.String process_name, System.String[] args) [0x00000] in <filename unknown>:0
  at Tomboy.Application.Initialize (System.String locale_dir, System.String display_name, System.String process_name, System.String[] args) [0x00000] in <filename unknown>:0
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000] in <filename unknown>:0
[/PHP]

解决方法:

[PHP]
$ dbus-launch tomboy
[/PHP]
来启动tomboy。
发表于 2010-12-16 14:24:17 | 显示全部楼层
启动session的时候就应该使用dbus-launch来启动。

exec ck-launch-session dbus-launch --auto-syntax --exit-with-session $SESSION
回复 支持 反对

使用道具 举报

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

本版积分规则

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