Skip to content

Commit 0e7be80

Browse files
committed
use Util.spawn instead of GLib
1 parent dc80763 commit 0e7be80

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • files/usr/share/cinnamon/applets/menu@cinnamon.org

files/usr/share/cinnamon/applets/menu@cinnamon.org/appUtils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const Cinnamon = imports.gi.Cinnamon;
22
const CMenu = imports.gi.CMenu;
33
const Gio = imports.gi.Gio;
44
const GLib = imports.gi.GLib;
5+
const Util = imports.misc.util;
56

67
let appsys = Cinnamon.AppSystem.get_default();
78

@@ -119,7 +120,7 @@ function loadDirectory(dir, top_dir, apps) {
119120
}
120121

121122
function _launchMintinstall(pkgName) {
122-
GLib.spawn_command_line_async(`mintinstall show ${pkgName}`);
123+
Util.spawn(["mintinstall", "show", pkgName]);
123124
}
124125

125126
// launch mintinstall on app page
@@ -150,7 +151,7 @@ function launchMintinstallForApp(app) {
150151
}
151152

152153
function _launchPamac(pkgName) {
153-
GLib.spawn_command_line_async(`pamac-manager --details=${pkgName}`);
154+
Util.spawn(["pamac-manager", `--details=${pkgName}`]);
154155
}
155156

156157
// launch pamac-manager on app page

0 commit comments

Comments
 (0)