nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / gn / gnome-shell-extensions / fix_gtop.patch
blob61c90f184d1ec15c764f48f830a604be7253b44b
1 diff --git a/extensions/system-monitor/extension.js b/extensions/system-monitor/extension.js
2 index 37d2eb1..232d0d5 100644
3 --- a/extensions/system-monitor/extension.js
4 +++ b/extensions/system-monitor/extension.js
5 @@ -6,9 +6,9 @@
7 import Clutter from 'gi://Clutter';
8 import Gio from 'gi://Gio';
9 +import GIRepository from "gi://GIRepository";
10 import GLib from 'gi://GLib';
11 import GObject from 'gi://GObject';
12 -import GTop from 'gi://GTop';
13 import Pango from 'gi://Pango';
14 import Shell from 'gi://Shell';
15 import St from 'gi://St';
16 @@ -19,6 +19,9 @@ import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js';
18 import * as Main from 'resource:///org/gnome/shell/ui/main.js';
20 +GIRepository.Repository.prepend_search_path('@gtop_path@');
21 +const GTop = (await import("gi://GTop")).default;
23 const THRESHOLD_HIGH = 0.80;
25 // adapted from load-graph.cpp in gnome-system-monitor