From 3c579d0e275cdaf6f2c9589abade94bde7905c82 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 26 Apr 2025 22:36:23 +1000 Subject: clean Remove everything --- src/utils/mpris.ts | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/utils/mpris.ts (limited to 'src/utils/mpris.ts') diff --git a/src/utils/mpris.ts b/src/utils/mpris.ts deleted file mode 100644 index e0cc111..0000000 --- a/src/utils/mpris.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { GLib } from "astal"; -import AstalMpris from "gi://AstalMpris"; - -const hasPlasmaIntegration = GLib.find_program_in_path("plasma-browser-integration-host") !== null; - -export const isRealPlayer = (player?: AstalMpris.Player) => - player !== undefined && - // Player closed - player.identity !== null && - // Remove unecessary native buses from browsers if there's plasma integration - !(hasPlasmaIntegration && player.busName.startsWith("org.mpris.MediaPlayer2.firefox")) && - !(hasPlasmaIntegration && player.busName.startsWith("org.mpris.MediaPlayer2.chromium")) && - // playerctld just copies other buses and we don't need duplicates - !player.busName.startsWith("org.mpris.MediaPlayer2.playerctld") && - // Non-instance mpd bus - !(player.busName.endsWith(".mpd") && !player.busName.endsWith("MediaPlayer2.mpd")); -- cgit v1.2.3-freya