Name Chrome streams after their browser tabs
A browser extension reports audible tabs to moonmix-tabs-host, which matches them to PipeWire streams by time and publishes the names for the mixer; streams of one tab share a row. Ambiguous streams keep the browser's name. Without the extension, a browser's only running stream shows its MPRIS title. The smoke test no longer claims real audio hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b61d504234
commit
e16cc1b2ad
31 files changed
+1830
-15
No files matched your search
@@ -92,9 +92,15 @@ class ContainerTests(unittest.TestCase):
|
||||
self.assertEqual(self.mounts(), [
|
||||
f"type=bind,src={self.runtime}/wayland-test,dst=/run/moonmix/wayland-0,ro",
|
||||
f"type=bind,src={self.runtime}/pipewire-0,dst=/run/moonmix/pipewire-0,ro",
|
||||
f"type=bind,src={self.runtime}/moonmix,dst=/run/moonmix/tabs,ro",
|
||||
])
|
||||
self.assertIn("DBUS_SESSION_BUS_ADDRESS=unix:path=/run/moonmix/no-bus", arguments)
|
||||
|
||||
def test_tab_names_directory_is_private_and_read_only(self):
|
||||
self.assertEqual(self.launch().returncode, 0)
|
||||
self.assertEqual((self.runtime / "moonmix").stat().st_mode & 0o777, 0o700)
|
||||
self.assertIn("MOONMIX_TABS_DIR=/run/moonmix/tabs", self.podman_arguments())
|
||||
|
||||
def test_session_bus_is_optional_and_mounted_individually(self):
|
||||
self.bind_socket(self.runtime / "bus")
|
||||
self.assertEqual(self.launch().returncode, 0)
|
||||
@@ -117,6 +123,7 @@ class ContainerTests(unittest.TestCase):
|
||||
self.assertEqual(self.mounts(), [
|
||||
f"type=bind,src={wayland},dst=/run/moonmix/wayland-0,ro",
|
||||
f"type=bind,src={pipewire},dst=/run/moonmix/pipewire-0,ro",
|
||||
f"type=bind,src={self.runtime}/moonmix,dst=/run/moonmix/tabs,ro",
|
||||
])
|
||||
|
||||
def test_pipewire_runtime_remote_and_image_overrides(self):
|
||||
@@ -270,6 +277,7 @@ class ContainerTests(unittest.TestCase):
|
||||
self.assertEqual(mounts, [
|
||||
f"type=bind,src={self.runtime}/wayland-test,dst=/run/moonmix/wayland-0,ro",
|
||||
f"type=bind,src={self.runtime}/pipewire-0,dst=/run/moonmix/pipewire-0,ro",
|
||||
f"type=bind,src={self.runtime}/moonmix,dst=/run/moonmix/tabs,ro",
|
||||
f"type=bind,src={user_icons},dst=/run/moonmix/host/user/icons,ro",
|
||||
f"type=bind,src={sys_pixmaps},dst=/run/moonmix/host/usr/pixmaps,ro",
|
||||
f"type=bind,src={sys_apps},dst=/run/moonmix/host/usr/applications,ro",
|
||||
|
||||
Reference in new issue
Block a user