Btrfs Assistant 1.0 is coming, testers needed

This is not compatible with wayland, when running via terminal got this

  ~ btrfs-assistant
qt.qpa.plugin: Could not find the Qt platform plugin “wayland-egl” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

/usr/bin/btrfs-assistant: line 42: 1460 Aborted (core dumped) btrfs-assistant-bin ${params}

From the terminal you need to run btrfs-assistant-launcher.

still same error

What de/window manager are you using?

Sway wayland

It should work with sway if your Qt environment for sway is properly configured.

hm…how and where to check that. I saw few similar posts on Garuda forum but without solutions xD

I don’t use sway so I don’t know exactly what is needed.

In the past btrfs-assistant wasn’t working with sway so make sure any posts you are reading are recent.

1 Like

That is because we have switched to dracut.

That isn’t due to mkinitcpio/dracut.

What packages have you installed so far and what configuration have you done?

I tried with hyprland but same error.

Is there maybe cli version of btrfs-assistant ? :slight_smile:

I don’t think it works with hyprland. It is difficult to run a Qt application as root on wlroots-based environments which both sway and hyprland are. We have special code for sway that other sway users have reported is working.

Yes, it is limited though. It can list and restore snapshots. btrfs-assistant --help to see the options.

Alternatively, you can also work around it by running sudo -E btrfs-assistant-bin but that passes the entire user environment to root.

1 Like

Thanks, but can not run those also, same error again… damn

Make sure you have properly set QT_QPA_PLATFORM and QT_QPA_PLATFORMTHEME

1 Like

Sorry, but where I can find those ?

They are environment variables. You need to set them. Since you aren’t dealing with a full DE that sets things for you, you need to configure your own environment.

1 Like

#!/usr/bin/env bash

This wrapper allows allows some enviroment variables to be set properly even when it isn’t in the environment

ID=$(id -u)
if [[ “$ID” == “0” ]]; then
export XDG_RUNTIME_DIR=$(mktemp -d)
fi

extract the value of --xdg-desktop if it is passed and put all other args in params

for i in “$@”; do
case $i in
-x=|–xdg-desktop=)
export XDG_CURRENT_DESKTOP=“${i#=}"
shift
;;
-r=
|–xdg-runtime=)
export XDG_RUNTIME_DIR="${i#
=}”
shift
;;
-t=|–platformtheme=)
export QT_QPA_PLATFORMTHEME=“${i#=}"
shift
;;
-p=
|–platform=)
export QT_QPA_PLATFORM="${i#
=}”
shift
;;
-d=|–display=)
export WAYLAND_DISPLAY=“${i#*=}”
shift
;;
*)
params=“${params} ${i}”
shift
;;
esac
done

btrfs-assistant-bin ${params}

That script just takes the settings and passes them on. It doesn’t set them in the first place. Those settings need to be set in your environment to begin with.

1 Like

I am without luck, it seems. I tried everything, but gui not working.
I will need to use snapper in terminal , but dont know where to start, as I have separate /home partition and dont want to mess something :smiley:

Where did you set QT_QPA_PLATFORM and QT_QPA_PLATFORMTHEME and what did you set them to?

Also, btrfs-assistant-bin --help should work.

On global (WM) those are set to wayland. I am not experinced to know more about it , tried to google but no luck

btrfs-assistant-bin --help throw me same error