xdg-desktop-portal-hyprland/README.md

52 lines
1.3 KiB
Markdown
Raw Normal View History

2022-12-03 21:47:58 +01:00
# xdg-desktop-portal-hyprland
An [XDG Desktop Portal](https://github.com/flatpak/xdg-desktop-portal) backend
for Hyprland.
2022-12-05 01:43:40 +01:00
2018-12-12 22:29:57 +01:00
## Installing
First, make sure to install the required dependencies:
```
gbm
hyprland-protocols
hyprlang
libdrm
libpipewire-0.3
libspa-0.2
sdbus-cpp
wayland-client
wayland-protocols
```
Then run the build and install command:
```sh
git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland
cd xdg-desktop-portal-hyprland/
2024-01-07 17:59:26 +01:00
cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -B build
cmake --build build
sudo cmake --install build
```
2024-09-01 19:58:33 +02:00
## Nix
> [!CAUTION] XDPH should not be used from this flake directly!
>
> Instead, use it from the [Hyprland flake](https://github.com/hyprwm/Hyprland).
There are two reasons for the above:
1. Hyprland depends on XDPH, but XDPH also depends on Hyprland. This results in
a cyclic dependency, which is a nightmare. To counter this, we use the
Nixpkgs Hyprland package in this flake, so that it can be later consumed by
the Hyprland flake while overriding the Hyprland package.
2. Even if you manually do all the overriding, you may still get it wrong and
lose out on the Cachix cache (which has XDPH as exposed by the Hyprland
flake).
2023-09-06 20:36:48 +02:00
## Running, FAQs, etc.
2019-12-09 12:45:30 +01:00
See
[the Hyprland wiki](https://wiki.hyprland.org/Useful-Utilities/xdg-desktop-portal-hyprland/)