Estou trabalhando em um programa python no Ubuntu que verifica a conexão com a Internet e exibe uma imagem no painel superior usando o módulo GTK e PYGTK. Agora estou tentando autostart meu programa python após a inicialização.Por favor, ajude-me.
Eu tentei iniciar automaticamente em /etc/rc.local
, mas está mostrando esse tipo de erro .....
GtkWarning: could not open display
Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
GtkWarning: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
GtkWarning: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed
GtkWarning: IA__gdk_x11_display_get_xdisplay: assertion 'GDK_IS_DISPLAY (display)' failed
GtkWarning: IA__gdk_screen_get_number: assertion 'GDK_IS_SCREEN (screen)' failed