User Tools

Site Tools


howto:firefox-external-app-launcher

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:firefox-external-app-launcher [2023/12/28 22:30] Wulf Rajekhowto:firefox-external-app-launcher [2023/12/30 03:41] (current) Wulf Rajek
Line 8: Line 8:
 download, then unzip, then run installer download, then unzip, then run installer
  
-Example for dl option using remote yt-dlp +Example for dl option using remote yt-dlp (requires password-less preshared ssh keys)
 <code> <code>
-Name: Download with yt-dlp on gondor+Name: Download with yt-dlp on remote system
 exec: gnome-terminal exec: gnome-terminal
-args: --  ssh gondor "cd Downloads; ./yt-dlp_linux [HREF] ; echo ''; echo 'press enter'; read line"+args: -- ssh user@remotesystem "yt-dlp_linux [HREF] ; echo ''; echo 'press enter'; read line"
 Toolbar, page and link context Toolbar, page and link context
  
 +#on local system use only:
 +args: -- "yt-dlp_linux [HREF] ; echo ''; echo 'press enter'; read line"
 +</code>
 +
 +Small bash script to exit immediately if all went fine but stops on error:
 +<code bash ytdlp-wrapper.sh>
 +#!/bin/bash
 +url=$1
 +tmp=$(mktemp -t ytdlp.XXXXXXX)
 +~/.local/bin/yt-dlp_linux $url 2>&1 | tee $tmp
 +grep -q -i "ERROR:" $tmp && (echo ""; echo "An error occurred. Press any key"; read line;)
 +rm $tmp
 +</code>
 +Create in ~/.local/bin and copy yt-dlp_linux into ~/.local/bin as well, then
 +<code>
 +chmod 755 ytdlp-wrapper.sh
 +</code>
 +Adjust the Firefox External App Launcher args to:
 +<code>
 +-- ssh user@remotesystem "/home/user/.local/bin/ytdlp-wrapper.sh [HREF]"
 +
 +#for local system use only:
 +-- ytdlp-wrapper.sh [HREF]
 </code> </code>
howto/firefox-external-app-launcher.1703802621.txt.gz · Last modified: 2023/12/28 22:30 by Wulf Rajek