Stremio Native on Qubes OS

Here is the complete, updated Stremio Native Qubes OS guide in clean, copy-pasteable text format, incorporating fedora-44-xfce and fedora-minimal templates, direct binary menu execution, and DisposableVM persistence.


Stremio Native on Qubes OS (Fedora 44 XFCE & Minimal Templates)

1. Configure Qubes VM Settings (Before Starting)

  • dev-vm (Temporary Build AppVM):
    • Private storage max size: 25600 MB (25 GB)
    • Initial / Max memory: 8192 MB (8 GB) — uncheck Include in memory balancing during the build
    • vCPUs: 4
  • media-vm or dvm-template (Playback AppVM / Disposable Template):
    • Private storage max size: 10240 MB (10 GB) or higher
    • Initial / Max memory: 4096 MB to 6144 MB
    • vCPUs: 4 (recommended for smooth CPU video decoding in Qubes)

2. Build stremio-native Inside dev-vm

2A. Install Temporary Build Dependencies

Open a terminal in dev-vm and install RPM Fusion, C++/vcpkg build tools, lld, and development headers (these stay temporary in dev-vm and wipe on reboot):

bash

sudo dnf install -y \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm

sudo dnf install -y \
  git gcc gcc-c++ make cmake ninja-build pkgconf-pkg-config clang llvm-devel lld \
  perl-core curl zip unzip tar \
  mpv-devel gtk3-devel openssl-devel sqlite-devel dbus-devel libsecret-devel \
  mesa-libGL-devel mesa-libEGL-devel fontconfig-devel freetype-devel expat-devel \
  libxkbcommon-devel libxkbcommon-x11-devel wayland-devel \
  libX11-devel libXcursor-devel libXi-devel libXrandr-devel

2B. Install Rust, Clone Repository & Bootstrap vcpkg

bash

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"

cd ~
git clone --recurse-submodules https://github.com
cd ~/stremio-native
git clone https://github.com
./vcpkg/bootstrap-vcpkg.sh -disableMetrics

2C. Compile libtorrent 2.1.1 via vcpkg

bash

cd ~/stremio-native
./vcpkg/vcpkg install \
  --x-manifest-root="$PWD" \
  --x-install-root="$PWD/vcpkg_installed" \
  --triplet=x64-linux-v3-static-release \
  --overlay-triplets="$PWD/triplets" \
  --overlay-ports="$PWD/vcpkg-overlays"

2D. Compile stremio-native

bash

cd ~/stremio-native
mkdir -p ~/tmp
unset PKG_CONFIG_ALL_STATIC

export TRIPLET="x64-linux-v3-static-release"
export PKG_CONFIG_PATH="$PWD/vcpkg_installed/$TRIPLET/lib/pkgconfig"
export VCPKG_ROOT="$PWD/vcpkg"
export VCPKG_DEFAULT_TRIPLET="$TRIPLET"

export RUSTFLAGS="--cfg rustix_use_libc -C link-arg=-fuse-ld=lld -C link-arg=-Wl,--strip-all"
export CARGO_PROFILE_RELEASE_LTO=false
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16
export CARGO_PROFILE_RELEASE_DEBUG=0
export TMPDIR="$HOME/tmp"

cargo build -j 2 --release --package stremio-native


3. Transfer the Compiled Binary

In dev-vm, send the standalone binary to your playback AppVM or Disposable Template:

bash

qvm-copy ~/stremio-native/target/release/stremio-native


4. Install Runtime Libraries in Your Target TemplateVM

Open a terminal in the TemplateVM used by your playback qube (clone it first if you want to keep the base template unmodified).

Option A: Standard fedora-44-xfce Template

fedora-44-xfce already includes GTK3, Mesa OpenGL, X11/Wayland, and fonts. Install only RPM Fusion and mpv-libs:

bash

sudo dnf install -y \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm

sudo dnf install -y mpv-libs libsecret

Option B: fedora-minimal Template (e.g., fedora-45-minimal)

Open a root shell from dom0 via qvm-run -u root <minimal-template> xterm and install Qubes agents, fonts, and runtime libraries:

bash

dnf install -y \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm \
  https://rpmfusion.org(rpm -E %fedora).noarch.rpm

dnf install -y \
  qubes-core-agent-networking pipewire-qubes \
  mpv-libs gtk3 libsecret gnome-keyring dbus-daemon ca-certificates \
  mesa-libGL mesa-libEGL mesa-dri-drivers \
  libxkbcommon libxkbcommon-x11 libX11 libXcursor libXi libXrandr \
  libwayland-client libwayland-cursor libwayland-egl \
  fontconfig freetype dejavu-sans-fonts

Shut down the TemplateVM after installing so the changes persist.


5. Set Up Binary & Qubes Menu Entry (Direct Launch)

In your playback AppVM or Disposable Template (e.g., fedora-44-dvm), move the binary into place and create a .desktop launcher pointing directly to the ELF binary with Path locked to ~/stremio-app (replace <dev-vm-name> with your dev qube’s exact name):

bash

mkdir -p ~/stremio-app ~/.local/share/applications
mv ~/QubesIncoming/<dev-vm-name>/stremio-native ~/stremio-app/
chmod +x ~/stremio-app/stremio-native

cat << 'EOF' > ~/.local/share/applications/stremio-native.desktop
[Desktop Entry]
Name=Stremio Native
Comment=Native Rust & Slint client for Stremio
Path=/home/user/stremio-app
Exec=/home/user/stremio-app/stremio-native
Terminal=false
Type=Application
Categories=AudioVideo;Video;Player;
EOF

Then sync the Qubes application menu from dom0 (replace <target-vm-or-dvm-template> with your qube’s name):

bash

qvm-sync-appmenus <target-vm-or-dvm-template>


6. Configure Addons & HDR Persistence (For DisposableVMs)

  1. Start your Disposable Template (e.g., fedora-44-dvm) and launch Stremio Native from the Qubes menu (or run cd ~/stremio-app && ./stremio-native).
  2. Use a local profile (not Guest Mode): Select or create a local profile (such as the default local Owner profile) so addons save permanently inside ~/stremio-app/storage/.
  3. Set HDR Mode: Open Settings → Playback → HDR Mode and select Tone Map (or Disabled) so HDR videos render with accurate colors on Qubes’ SDR display.
  4. Close Stremio Native cleanly so SQLite flushes to disk, then shut down the Disposable Template completely before launching new DispVMs.

7. Clean Up dev-vm

Once you confirm Stremio Native launches and plays video properly in your playback qube, free up ~15 GB in dev-vm:

bash

rm -rf ~/tmp ~/stremio-native ~/.cargo ~/.rustup

Images edited to text with help of AI
Any Suggestions are more than welcome.

2 Likes

Please use text instead of screenshots.

1 Like

I am new to forum and having problem with text formatting when using text. so used screenshots. Anyone is welcome to change into text format.

The forum uses a very common markdown format, if you have some issues, you can post the text anyway and we will see if someone wants to clean it up. Images without description are not accessible.

1 Like

Corrected, It was links actually which weren’t allowing edits.

The first post is meant to be a wiki post, so the text content should be placed here.

See also: How to write useful guides

I wasn’t able to edit my first post. Maybe new user?

You did 2 hours ago… are you sure?