Skip to content

Bazzite / Fedora Atomic — additional setup notes #2

@TheCoderGamer

Description

@TheCoderGamer

Environment:

  • OS: Bazzite (Fedora Atomic base)
  • Unity: 6000.4.2f1
  • Quest 3 via SteamVR + ALVR

I got the setup working on Bazzite and ran into a few things not covered in the current docs. Leaving these here in case they help others.


1. openxr-devel must be installed before building NativeFix

The build fails immediately with:

strip_android_layer.c:13:10: fatal error: openxr/openxr.h: No such file or directory

On Bazzite/Fedora Atomic, the package is not installed by default and unityhub is not in the standard repos. Install via:

sudo rpm-ostree install openxr-devel
sudo systemctl reboot

2. ALVR launcher on Bazzite

The recommended install is the alvr_launcher_linux.tar.gz from the GitHub releases page (not an AppImage). After extracting and launching, use the built-in buttons to add ALVR to Steam and install the APK on the headset.

Also required — add this to SteamVR's Launch Options in Steam (SteamVR → Properties → General → Launch Options):

~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh %command%

Without this, SteamVR does not start correctly alongside ALVR on Linux.


3. /usr/lib64 instead of /usr/lib on Fedora

The OpenXRLoader.cs patch in the docs uses /usr/lib/libopenxr_loader.so, but on Fedora/Bazzite the loader is at /usr/lib64/libopenxr_loader.so. The editor silently fails with Failed to load openxr runtime loader until this is corrected.

Verify the correct path first:

find /usr -name 'libopenxr_loader.so'

Then use that path in the #elif UNITY_EDITOR_LINUX block.


4. libUnityOpenXR.so.meta must be manually patched for Linux

The OpenXR package does not ship a Linux-native libUnityOpenXR.so.
The workaround is to use the android/x64 version (same ELF x86_64 binary) with the NativeFix bionic→glibc shims. However, Unity will not load it in the Linux editor unless the .meta file is explicitly updated to enable it.

By default the .meta has:
Exclude Editor: 1
Exclude Linux64: 1
Editor: enabled: 0
Linux64: enabled: 0

These must be changed to enable the plugin for the Linux editor and Linux64 standalone. Without this step, Unity reports DllNotFoundException: UnityOpenXR and OpenXR never initializes, regardless of all other configuration being correct.


Hope this is useful for other Bazzite/Fedora users. Great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions