2023-11-13 09:33:28 -05:00
|
|
|
# media
|
|
|
|
|
|
|
|
Media opener through disposables in Qubes OS.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Description](#description)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Usage](#usage)
|
|
|
|
* [Credits](#credits)
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Creates the offline "media" qube for storing multimedia files and open the
|
|
|
|
files in a named disposable "disp-media" via MIME configuration.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Top:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl top.enable media
|
|
|
|
sudo qubesctl --targets=tpl-media,media state.apply
|
|
|
|
sudo qubesctl top.disable media
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* State:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:begin:post-install -->
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply media.create
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-media state.apply media.install
|
|
|
|
sudo qubesctl --skip-dom0 --targets=media state.apply media.configure
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:end:post-install -->
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-02-22 16:32:33 -05:00
|
|
|
You will store multimedia files in the `media` qube. When you try to open a
|
2023-11-13 09:33:28 -05:00
|
|
|
file in that qube, it will open instead in the disposable "disp-media".
|
|
|
|
|
2024-02-22 16:32:33 -05:00
|
|
|
No file browser is installed in the `media` qube as code execution exploits in
|
2023-11-13 09:33:28 -05:00
|
|
|
file browsers are common when rendering thumbnails, indexing file name,
|
|
|
|
automatically running scripts saved in the home directory. You are open to
|
|
|
|
forward files from the "media" qube to "disp-media" by running `xdg-open
|
|
|
|
/path/file` or more explicitly, `qvm-open-in-dvm /path/file`.
|
|
|
|
|
2024-02-23 14:48:49 -05:00
|
|
|
You can personalize `mpv` by editing `$XDG_CONFIG_HOME/mpv/mpv.conf`.
|
2024-02-22 16:32:33 -05:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
## Credits
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Unman](https://github.com/unman/shaker/tree/main/multimedia)
|