2022-12-18 14:20:19 +01:00
|
|
|
`xdg-desktop-portal-hyprland` (xdph) is a fork of `xdg-desktop-portal-wlr`
|
|
|
|
(xdpw), which supports window sharing and region sharing (currently broken),
|
|
|
|
apart from output (per-screen) sharing.
|
|
|
|
|
2023-02-14 14:30:40 +01:00
|
|
|
Due to the internal workings, `xdph` depends on the Hyprland package for
|
2022-12-18 14:20:19 +01:00
|
|
|
getting the window list. However, we cannot make a cross-dependency betwen
|
|
|
|
the Hyprland flake and the `xdph` flake.
|
|
|
|
|
|
|
|
The best solution we found to make everything work properly was to override
|
|
|
|
the Hyprland package that `xdph` builds with.
|
|
|
|
|
|
|
|
In the Hyprland flake, it's done like this:
|
|
|
|
```nix
|
|
|
|
xdg-desktop-portal-hyprland = inputs.xdph.packages.${prev.system}.default.override {
|
|
|
|
hyprland-share-picker = inputs.xdph.packages.${prev.system}.hyprland-share-picker.override {inherit hyprland;};
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
2023-02-14 14:30:40 +01:00
|
|
|
{{< hint >}}
|
|
|
|
A similar override is done inside the [NixOS module](../Hyprland-on-NixOS), so
|
|
|
|
you do not have to tinker with it if you use the module.
|
|
|
|
{{< /hint >}}
|
2022-12-18 14:20:19 +01:00
|
|
|
|
|
|
|
If you don't use the module, you will want to do a similar override in your
|
|
|
|
configuration.
|