New comment by meator on void-packages repository https://github.com/void-linux/void-packages/pull/38265#issuecomment-1193953402 Comment: > Does `btrfs-assistant-launcher` work without `sudo`? As tranzystorek-io pointed out, `btrfs-assistant-launcher` is just ```sh #!/usr/bin/env bash pkexec btrfs-assistant --xdg-desktop=$XDG_CURRENT_DESKTOP ``` It uses `pkexec` for privilege escalation when run without `sudo` and then fails with the same error. Interestingly ```sh pkexec env DISPLAY=:0 btrfs-assistant --xdg-desktop=$XDG_CURRENT_DESKTOP ``` works. I think it's because `pkexec` strips unsafe environment variables which include `$DISPLAY`, and because Qt needs that, it fails.