0
我怎樣才能看到什麼問題與面板應用程序在GNOME中,錯誤記錄到哪裏?Gnome pannel應用程序錯誤消息
我正在玩一個面板應用程序,在pygtk。我可以重新父母它,它的工作原理,但是當我嘗試將其添加到面板失敗,我不知道爲什麼,不能看到任何錯誤。
這裏是我用來分隔實際使用和測試的代碼。
if DEBUG == True:
from tempus_fugit import app
main_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
main_window.set_title("DEBUG: Tempus Fugit Applet")
main_window.connect("destroy", gtk.main_quit)
applet = gnomeapplet.Applet()
app.tempus_fugit_factory(applet, None)
applet.reparent(main_window)
main_window.show_all()
gtk.main()
else:
from tempus_fugit import app
gnomeapplet.bonobo_factory("OAFIID:TempusFugit_Factory", gnomeapplet.Applet.__gtype__, "Tempus Fugit", "0.1", app.tempus_fugit_factory)
所以當調試是假的,它通過面板推出的「添加到面板」功能,我怎麼能看到這個錯誤嗎?
感謝
謝謝,這很好。 Ubuntu的說明(我想其他debian衍生物)該文件被稱爲.xsession-ubuntu上的錯誤。 – Rob 2011-04-29 08:29:22
這是一個錯字。你是對的,這是.xsession錯誤。我只是修復它。 – gpoo 2011-04-29 17:04:55