Commit d577c7dfb4

d577c7dfb4f5813cfca77678431ef8e19f555fe6

parent: 0608c1aaa1

Unregistered key

Matthias Ahouansou <matthias@ahouansou.cz> · 2025-08-04 10:57 UTC

use xdg-open as default "browser"

this makes it so users default browsers are used by default

Layout: unified · split

README.md +1 −1
@@ -35,7 +35,7 @@ images: Sixels
35refresh_after_modifying_search_filters: true 35refresh_after_modifying_search_filters: true
36provider: YouTube 36provider: YouTube
37env: 37env:
38 browser: firefox 38 browser: xdg-open
39 video-player: mpv 39 video-player: mpv
40 youtube-downloader: yt-dlp 40 youtube-downloader: yt-dlp
41 terminal-emulator: konsole -e 41 terminal-emulator: konsole -e
docs/src/README.md +1 −1
@@ -24,7 +24,7 @@ images: Sixels
24refresh_after_modifying_search_filters: true 24refresh_after_modifying_search_filters: true
25provider: YouTube 25provider: YouTube
26env: 26env:
27 browser: firefox 27 browser: xdg-open
28 video-player: mpv 28 video-player: mpv
29 youtube-downloader: yt-dlp 29 youtube-downloader: yt-dlp
30 terminal-emulator: konsole -e 30 terminal-emulator: konsole -e
docs/src/basic_usage.md +1 −1
@@ -61,7 +61,7 @@ While any "play audio" options will start playing the audio in the embedded audi
61 61
62You can also play audio and videos externally. 62You can also play audio and videos externally.
63 63
64> This part assumes that you use `mpv` as your video player, `konsole` as your terminal emulator, `yt-dlp` as your YouTube video downloader, and `firefox` as your browser. 64> This part assumes that you use `mpv` as your video player, `konsole` as your terminal emulator and `yt-dlp` as your YouTube video downloader.
65> 65>
66> If that is not the case, you can learn how to change that in the *custom commands* section. 66> If that is not the case, you can learn how to change that in the *custom commands* section.
67 67
docs/src/config/main.md +1 −1
@@ -32,7 +32,7 @@ env:
32 terminal-emulator: konsole -e 32 terminal-emulator: konsole -e
33 youtube-downloader: yt-dlp 33 youtube-downloader: yt-dlp
34 save-path: ~/.local/share/youtube-tui/saved/ 34 save-path: ~/.local/share/youtube-tui/saved/
35 browser: firefox 35 browser: xdg-open
36``` 36```
37 37
38<hr> 38<hr>
src/config/main.rs +1 −1
@@ -256,7 +256,7 @@ const fn write_to_config_default() -> WriteConfig {
256fn default_env() -> HashMap<String, String> { 256fn default_env() -> HashMap<String, String> {
257 HashMap::from([ 257 HashMap::from([
258 (String::from("video-player"), String::from("mpv")), 258 (String::from("video-player"), String::from("mpv")),
259 (String::from("browser"), String::from("firefox")), 259 (String::from("browser"), String::from("xdg-open")),
260 ( 260 (
261 String::from("terminal-emulator"), 261 String::from("terminal-emulator"),
262 String::from("konsole -e"), 262 String::from("konsole -e"),