Skip to content

Unset QT_PLUGIN_PATH When Accessing Non-NixOS Host xdg-open or QT applications #16093

Description

@alastortenebris

Describe the bug

When opening a QT application on the host system from Nix, the application will crash as it cannot find the QPA plugin.

Steps To Reproduce

Open a QT application installed in a nix profile (Calibre in my case). Try to open another QT application on the host system (Dolphin in my case).

Expected behavior

The app runs.

Metadata

nix-env (Nix) 2.34.7 (Fedora 44 Kinoite)

Additional context

QT_PLUGIN_PATH needs to be unset for QT applications on the host system to run properly.

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions