Add image viewer, video player and PDF viewer defaults to the menu

This commit is contained in:
SirBlob committed 2026-09-24 12:49:45 -04:00
1 parent 5732986fee
commit 1f86bfd151
17 files changed
+226 -15

No files matched your search

+4
View File
@@ -128,7 +128,11 @@ of the `blob` listing.
| --- | --- | --- |
| `blob-default-browser` | Set the default browser for Blob and XDG handlers | [chromium\|chrome\|brave\|brave-origin\|edge\|firefox\|zen] |
| `blob-default-editor` | Set the default editor used by blob-launch-editor | [code\|cursor\|zed\|sublime_text\|helix\|vim\|emacs\|nvim] |
| `blob-default-image-viewer` | Set the default image viewer | [loupe\|imv\|eog\|gwenview] |
| `blob-default-mime` | Get or set the application that opens one group of file types (hidden) | <image\|video\|pdf\|document\|spreadsheet\|presentation\|text\|archive> [desktop-id] |
| `blob-default-pdf-viewer` | Set the default PDF and document viewer | [evince\|papers\|okular\|zathura\|firefox\|chromium] |
| `blob-default-terminal` | Set the default terminal used by xdg-terminal-exec | [alacritty\|foot\|ghostty\|kitty] |
| `blob-default-video-player` | Set the default video and audio player | [mpv\|vlc\|celluloid\|totem] |
## disk
+5 -2
View File
@@ -19,7 +19,7 @@ with `--check`.
| `install/steps/services.sh` | system services, systemd drop-ins, user units |
| `install/steps/boot.sh` | the Plymouth boot splash, GRUB, and other-OS detection |
| `install/steps/theme.sh` | the wallpaper link, the first theme, the first background |
| `install/steps/apps.sh` | default applications for images, video, PDFs and office files |
| `install/steps/apps.sh` | default applications for images, video, PDFs, office files, text and archives, with the file types read from `default/mime/` |
| `install/steps/login.sh` | SDDM, the session entry, and the first launch |
| `install/steps/reload.sh` | reloading systemd, the user services, and a running session |
@@ -66,7 +66,10 @@ with `--check`.
images, `mpv` for video and audio, `evince` for PDFs and other documents, LibreOffice for
documents, spreadsheets and presentations, GNOME Text Editor for text, and
File Roller for archives. A file type that already has a
default there is left alone. See [packages.md](packages.md#desktop-applications).
default there is left alone. The file types for each group are listed in
`default/mime/<group>.types`, and Setup > Defaults in the Blob menu changes
the image viewer, video player and PDF viewer later. See
[packages.md](packages.md#desktop-applications).
`~/.bashrc` gets one line sourcing `session/bashrc`. The line is added once,
a `.bak` is kept, and a `~/.bashrc` that already has it is left alone.
`session/profile.sh` also goes to `/etc/profile.d/blob.sh`, which sources
+15 -1
View File
@@ -180,7 +180,21 @@ the next boot, or now with `sudo systemctl start netbird@main`.
`install.sh` makes them the default for their file types through `xdg-mime`,
which writes `~/.config/mimeapps.list`. A type that already has a default in
that file is left alone, so a choice you made yourself always wins, and an app
that is not installed is skipped.
that is not installed is skipped. The file types for each group are listed once, in
`default/mime/<group>.types`, and read by both the installer and
`blob-default-mime`.
To change them later, use Setup > Defaults in the Blob menu, which has Image
Viewer, Video Player and PDF Viewer next to Browser, Terminal and Editor, or:
```
blob default image-viewer imv
blob default video-player vlc
blob default pdf-viewer zathura
```
Each lists only the apps it knows, shows only the installed ones in the menu,
and sets the whole group of file types at once.
## The boot splash