neige d'aoust

knowledge, art, and other stuff

User Tools

Site Tools


htpc:youtube

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
htpc:youtube [2025/02/07 18:03] – créée Yukihtpc:youtube [2025/02/08 00:56] (current) Yuki
Line 5: Line 5:
 ===== Launch ===== ===== Launch =====
  
-==== From a launcher like Steam ====+==== From a launcher ====
  
-Use a desktop file like this one, no need to install some separate Electron app or something. Ideally, use another web browser from the one you regularly use, or launch with a separate browser profile, something like ''<nowiki>--profile-directory="Profile 2"</nowiki>''.+This will launch a Chromium-based browser in kiosk mode. Use a desktop file like this one, no need to install some separate Electron app or something. Ideally, use another web browser from the one you regularly use, or launch with a separate browser profile, something like ''%%--profile-directory="Profile 2"%%''.
  
-<code ini YouTube.desktop>+<code ini ~/.local/share/applications/YouTube.desktop>
 [Desktop Entry] [Desktop Entry]
 Type=Application Type=Application
 Name=YouTube Name=YouTube
-Exec=vivaldi --disable-vivaldi --kiosk --new-window --no-sandboxthethe --user-agent="Mozilla/5.0 (PS4; Leanback Shell) Gecko/20100101 Firefox/65.0 LeanbackShell/01.00.01.75 Sony PS4/ (PS4, , no, CH)" https://youtube.com/tv+Exec=vivaldi --disable-vivaldi --kiosk --new-window --no-sandbox --user-agent="Mozilla/5.0 (PS4; Leanback Shell) Gecko/20100101 Firefox/65.0 LeanbackShell/01.00.01.75 Sony PS4/ (PS4, , no, CH)" https://youtube.com/tv
 </code> </code>
  
-==== From a normal web browser ====+It should be more or less the same thing with Firefox and any other modern browser. 
 + 
 +==== From a web browser ====
  
 There's a lot of user agent switcher extensions like [[https://chromewebstore.google.com/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg|this one]]. Most of them lets you configure a user agent per website or domain, however if you set youtube.com/tv as homepage, or it otherwise loads on start, the page may load //before// the extension had time to load and so you end up with YouTube redirecting you to the main page anyway. There's a lot of user agent switcher extensions like [[https://chromewebstore.google.com/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg|this one]]. Most of them lets you configure a user agent per website or domain, however if you set youtube.com/tv as homepage, or it otherwise loads on start, the page may load //before// the extension had time to load and so you end up with YouTube redirecting you to the main page anyway.
htpc/youtube.1738969432.txt.gz · Last modified: 2025/02/07 18:03 by Yuki