mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
refactor: use GLib.find_program_in_path()
Use the more efficient built-in for checking if a program is in the PATH.
This commit is contained in:
@@ -1833,7 +1833,7 @@ export const MyShowAppsIconMenu = class extends PopupMenu.PopupMenu {
|
||||
|
||||
// Only add menu entries for commands that exist in path
|
||||
_appendItem(info) {
|
||||
if (Utils.checkIfCommandExists(info.cmd[0])) {
|
||||
if (GLib.find_program_in_path(info.cmd[0])) {
|
||||
let item = this._appendMenuItem(_(info.title));
|
||||
|
||||
item.connect('activate', function() {
|
||||
|
||||
Reference in New Issue
Block a user