about summary refs log tree commit diff
path: root/pkgs/desktops/gnome/extensions/extensionOverridesPatches/system-monitor-next_at_paradoxxx.zero.gmail.com.patch
blob: 19eedbf27a985af4d256af82462bf2d2baa53168 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/extension.js b/extension.js
index ee8c3a9..ca72885 100644
--- a/extension.js
+++ b/extension.js
@@ -21,6 +21,7 @@
 import { Extension, gettext as _ } from "resource:///org/gnome/shell/extensions/extension.js";
 
 import Clutter from "gi://Clutter";
+import GIRepository from "gi://GIRepository";
 import GLib from "gi://GLib";
 import GObject from "gi://GObject";
 
@@ -28,7 +29,6 @@ import Gio from "gi://Gio";
 import Shell from "gi://Shell";
 import St from "gi://St";
 import UPowerGlib from "gi://UPowerGlib";
-import GTop from "gi://GTop";
 import NM from "gi://NM";
 
 import * as ModalDialog from "resource:///org/gnome/shell/ui/modalDialog.js";
@@ -41,6 +41,9 @@ import * as PopupMenu from "resource:///org/gnome/shell/ui/popupMenu.js";
 
 import * as Util from "resource:///org/gnome/shell/misc/util.js";
 
+GIRepository.Repository.prepend_search_path('@gtop_path@');
+const GTop = (await import("gi://GTop")).default;
+
 const NetworkManager = NM;
 const UPower = UPowerGlib;
 // Copied as of https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/5fa08fe53376f5dca755360bd005a4a51ca78917/js/ui/panel.js#L45