Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch in ssh #130

Open
lokomass opened this issue May 29, 2024 · 6 comments
Open

launch in ssh #130

lokomass opened this issue May 29, 2024 · 6 comments

Comments

@lokomass
Copy link

lokomass commented May 29, 2024

Hi,

is it possible launch indicator in ssh console ?

loko@ubuntu:~$ indicator-sysmonitor 
INFO:root:start

(indicator-sysmonitor:3082): Gtk-CRITICAL **: 22:03:07.795: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
/usr/bin/indicator-sysmonitor:103: Warning: invalid (NULL) pointer instance
  self.ind = appindicator.Indicator.new("indicator-sysmonitor", self.tindicator, \
/usr/bin/indicator-sysmonitor:103: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
  self.ind = appindicator.Indicator.new("indicator-sysmonitor", self.tindicator, \

(indicator-sysmonitor:3082): Gtk-CRITICAL **: 22:03:07.795: _gtk_css_lookup_resolve: assertion '(((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((provider)); GType __t = ((_gtk_style_provider_private_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))' failed
/usr/bin/indicator-sysmonitor:121: Warning: g_object_set_data_full: assertion 'G_IS_OBJECT (object)' failed
  menu = Gtk.Menu()

(indicator-sysmonitor:3082): Gtk-ERROR **: 22:03:07.795: Can't create a GtkStyleContext without a display connection
Trace/breakpoint trap (core dumped)
@lokomass lokomass closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
@lokomass lokomass reopened this May 29, 2024
@lokomass lokomass changed the title don't work in ubuntu 24.04 launch in ssh May 29, 2024
@fossfreedom
Copy link
Owner

(indicator-sysmonitor:3082): Gtk-ERROR **: 22:03:07.795: Can't create a GtkStyleContext without a display connection
Trace/breakpoint trap (core dumped)

That to me says there is no graphical display ... its a gtk issue. You need to have a panel running with appindicators that understand what display they are running under.

indicator-sysmonitor needs a graphical display ... it doesn't run in text mode.

@lokomass
Copy link
Author

is there a way to set I want auto start at boot, but in ssh, with plan text ?

@fossfreedom
Copy link
Owner

No plans to support that way of working.

@lokomass
Copy link
Author

Actually, I use Proxmox to copy a clean Ubuntu template and run a post-install script to have a fully ready and automatically installed VM. This script automatically installs and sets up my VPN, and I would like to display my public IP directly in the taskbar next to the time, all without access to the graphical interface (even if it means restarting Ubuntu for the changes to take effect).

@lokomass
Copy link
Author

I'm trying to launch with X11 session, but nothing appears in taskbar :

image
image

@fossfreedom
Copy link
Owner

image

Whats that dark grey blob next to the network applet? Is that clickable?

If you start up indicator-sysmonitor from the command line (i.e. don't run it via autostart) then are there any messages displayed in the terminal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants