diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-14 18:15:09 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-14 18:15:09 +1100 |
| commit | b5648cf9869b583487a00f548667719c69f7d4aa (patch) | |
| tree | 535007a25d11e51297564fdcee9e6c68b07a95d7 /utils/mpris.ts | |
| parent | launcher: fix math derive and vars (diff) | |
| download | caelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.tar.gz caelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.tar.bz2 caelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.zip | |
use GLib instead of external which
Diffstat (limited to 'utils/mpris.ts')
| -rw-r--r-- | utils/mpris.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 && |