Back to plugins
v1.0.0 notfinaldev
About
YouTube Search
Search YouTube directly from the Noctalia launcher and open a selected video in
your default browser or other xdg-open handler.
Plugin
| Field | Value |
|---|---|
| ID | notfinaldev/youtube-search |
| Entries | Launcher provider: youtube |
| Launcher Prefix | /yt |
Requirements
Install both dependencies on PATH:
yt-dlpsearches YouTube and returns the video metadata.xdg-openopens the selected YouTube video with the system's registered URL handler.
Usage
- Open the Noctalia launcher.
- Type
/ytfollowed by a search query, for example/yt ambient coding. - Choose one of the returned videos to open
https://www.youtube.com/watch?v=<video-id>&autoplay=1throughxdg-open.
The provider returns at most five results. Each result shows its title and,
when available, the channel and formatted duration. Empty queries clear the
result list. A missing yt-dlp, search failure, malformed search response, or
no matches is shown in the launcher as a status row.
Notes
Network and filesystem effects
- Every non-empty query starts
yt-dlpwith a YouTube search for up to five videos. This sends the query to YouTube and letsyt-dlpmake the network requests needed to retrieve search metadata. - For each displayed video whose thumbnail is not already cached, the plugin
downloads
https://i.ytimg.com/vi/<video-id>/hqdefault.jpg. - Thumbnails are stored below the plugin directory at
cache/youtube/<video-id>.jpg. The plugin createscache/youtubewhen it first needs to cache a thumbnail. Cached thumbnails are reused by later searches and are not automatically removed.
Processes and playback
- Searches run the equivalent of
yt-dlp --ignore-config --no-warnings --flat-playlist --dump-single-json 'ytsearch5:<query>'asynchronously with a 15-second timeout. The query is shell-quoted before it is passed to the command. - Activating a video runs
xdg-openasynchronously for that video's YouTube watch URL withautoplay=1; its standard output and standard error are discarded.xdg-opendelegates playback to the system's configured handler, normally a browser. Whether playback actually starts automatically depends on that handler and its autoplay policy.
Versions
| Version | Plugin API | Updated |
|---|---|---|
| v1.0.0 latest | 18 | Aug 30, 2026 |
Older versions stay installable on a Noctalia release whose plugin API is below the latest version's.