Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat(omnidisc): say the desktop shows the picker on Linux
tonhowtf8236ed808dd9
diff --git a/src/components/omnidisc/ShareScreenDialog.svelte b/src/components/omnidisc/ShareScreenDialog.svelteindex e6737ef4..b95216d6 100644--- a/src/components/omnidisc/ShareScreenDialog.svelte+++ b/src/components/omnidisc/ShareScreenDialog.svelte@@ -23,6 +23,13 @@let { onClose }: { onClose: () => void } = $props();let sources = $state<StreamSources | null>(null);+ /// The Linux backend answers with a single placeholder because the portal+ /// shows its own picker after "share" is pressed.+ let portalPicker = $derived(+ sources?.displays.length === 1 &&+ sources.windows.length === 0 &&+ sources.displays[0].title === "__omnidisc_portal_picker__",+ );let loading = $state(true);let loadError = $state<string | null>(null);let selected = $state<SourceId | null>(null);@@ -126,6 +133,14 @@<button type="button" class="btn" onclick={() => void load()}>{$t("omnidisc.voice.retry")}</button>{/if}</div>+ {:else if sources && portalPicker}+ <!-- On Wayland an unprivileged app cannot enumerate windows: the+ desktop's own dialog is the picker. Saying so beats drawing a grid+ we cannot fill. -->+ <section>+ <h3>{$t("omnidisc.stream.pick_source")}</h3>+ <p class="muted">{$t("omnidisc.stream.portal_picker")}</p>+ </section>{:else if sources}<section><h3>{$t("omnidisc.stream.pick_source")}</h3>diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.jsonindex b8fded7b..5ecb6c95 100644--- a/src/lib/i18n/el.json+++ b/src/lib/i18n/el.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.jsonindex d6d04a71..41efb90d 100644--- a/src/lib/i18n/en.json+++ b/src/lib/i18n/en.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.jsonindex 5cf6e9e4..68fe53b7 100644--- a/src/lib/i18n/es.json+++ b/src/lib/i18n/es.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/fa.json b/src/lib/i18n/fa.jsonindex a9c8edcb..beb36529 100644--- a/src/lib/i18n/fa.json+++ b/src/lib/i18n/fa.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.jsonindex 9290de81..d4456d52 100644--- a/src/lib/i18n/fr.json+++ b/src/lib/i18n/fr.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.jsonindex b289ebe4..029cf4f4 100644--- a/src/lib/i18n/it.json+++ b/src/lib/i18n/it.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.jsonindex 1e6313a7..bba82dbe 100644--- a/src/lib/i18n/ja.json+++ b/src/lib/i18n/ja.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.tsindex 2ad4e4f0..1999db3c 100644--- a/src/lib/i18n/keys.ts+++ b/src/lib/i18n/keys.ts@@ -1570,6 +1570,7 @@ export type TranslationKeys =| 'omnidisc.stream.mode_text'| 'omnidisc.stream.no_active'| 'omnidisc.stream.pick_source'+ | 'omnidisc.stream.portal_picker'| 'omnidisc.stream.preview_alt'| 'omnidisc.stream.quality'| 'omnidisc.stream.receiving'diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.jsonindex 007e4d12..763edb6e 100644--- a/src/lib/i18n/pt.json+++ b/src/lib/i18n/pt.json@@ -4517,7 +4517,8 @@"loss": "Perda","encode": "Codificação","no_active": "Nenhuma transmissão em andamento.",- "preview_alt": "Prévia ao vivo da sua tela compartilhada"+ "preview_alt": "Prévia ao vivo da sua tela compartilhada",+ "portal_picker": "Seu sistema vai perguntar qual tela ou janela compartilhar depois que você tocar em Compartilhar."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.jsonindex ddbdcac5..94aac135 100644--- a/src/lib/i18n/ru.json+++ b/src/lib/i18n/ru.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.jsonindex 9738f1a9..bf63649a 100644--- a/src/lib/i18n/zh-TW.json+++ b/src/lib/i18n/zh-TW.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.jsonindex 5016e33a..e0d9049c 100644--- a/src/lib/i18n/zh.json+++ b/src/lib/i18n/zh.json@@ -4517,7 +4517,8 @@"loss": "Loss","encode": "Encode","no_active": "No stream running yet.",- "preview_alt": "Live preview of your shared screen"+ "preview_alt": "Live preview of your shared screen",+ "portal_picker": "Your desktop will ask which screen or window to share after you press Share."},"emoji": {"title": "Emoji",