From 027e8c1674c8280518212fefd1c05e039df560d5 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sat, 9 Nov 2024 18:25:28 +0100 Subject: [PATCH] system-monitor: Unbreak runtime on (at least) BSD Calling glibtop_init is not optional on BSD[0], and not doing so will crash gnome-shell with: glibtop(c=57582): [ERROR] glibtop_get_swap: Function not implemented gnome-session-binary[34511]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 6 [0]: https://gitlab.gnome.org/GNOME/libgtop/-/issues/44 Part-of: --- extensions/system-monitor/extension.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/system-monitor/extension.js b/extensions/system-monitor/extension.js index 37d2eb18..1a8060d7 100644 --- a/extensions/system-monitor/extension.js +++ b/extensions/system-monitor/extension.js @@ -361,6 +361,7 @@ class Indicator extends PanelMenu.Button { } constructor(settings) { + GTop.glibtop_init(); super(0.5, _('System stats')); this._settings = settings;