From b5648cf9869b583487a00f548667719c69f7d4aa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 14 Jan 2025 18:15:09 +1100 Subject: use GLib instead of external which --- utils/mpris.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/mpris.ts') diff --git a/utils/mpris.ts b/utils/mpris.ts index 8f6923a..e0cc111 100644 --- a/utils/mpris.ts +++ b/utils/mpris.ts @@ -1,7 +1,7 @@ +import { GLib } from "astal"; import AstalMpris from "gi://AstalMpris"; -import { inPath } from "./system"; -const hasPlasmaIntegration = inPath("plasma-browser-integration-host"); +const hasPlasmaIntegration = GLib.find_program_in_path("plasma-browser-integration-host") !== null; export const isRealPlayer = (player?: AstalMpris.Player) => player !== undefined && -- cgit v1.2.3-freya