summaryrefslogtreecommitdiff
path: root/src/utils/mpris.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:23 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:23 +1000
commit3c579d0e275cdaf6f2c9589abade94bde7905c82 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/utils/mpris.ts
parentschemes: fix (diff)
downloadcaelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.tar.gz
caelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.tar.bz2
caelestia-shell-3c579d0e275cdaf6f2c9589abade94bde7905c82.zip
clean
Remove everything
Diffstat (limited to 'src/utils/mpris.ts')
-rw-r--r--src/utils/mpris.ts16
1 files changed, 0 insertions, 16 deletions
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"));