Find a file
2025-03-14 08:35:39 +02:00
.builds
.github/workflows
contrib
hyprland-share-picker core: move to CProcess from hyprutils 2024-11-15 20:43:37 +00:00
nix nix: mesa -> libgbm 2025-03-14 08:35:39 +02:00
protocols core: move to stable/linux-dmabuf-v1 instead of unstable () 2024-12-02 16:31:04 +00:00
src globalshortcuts: Fix inverted arguments () 2025-01-09 11:13:23 +00:00
subprojects core: move to sdbus-cpp2 () 2024-10-22 18:45:24 +01:00
.clang-format
.editorconfig
.gitignore gitignore: reorder and label sections 2024-10-29 09:35:59 +02:00
.gitmodules
CMakeLists.txt core: move to stable/linux-dmabuf-v1 instead of unstable () 2024-12-02 16:31:04 +00:00
CONTRIBUTING.md
flake.lock flake.lock: update 2025-01-23 14:23:11 +02:00
flake.nix flake.lock: update 2024-12-17 10:08:37 +02:00
hyprland.portal
LICENSE
meson.build
meson_options.txt
org.freedesktop.impl.portal.desktop.hyprland.service.in
README.md README: fix old wiki link 2024-10-23 10:08:19 +01:00
VERSION version: bump to 1.3.9 2024-12-19 00:48:58 +00:00

xdg-desktop-portal-hyprland

An XDG Desktop Portal backend for Hyprland.

Installing

First, make sure to install the required dependencies:

gbm
hyprland-protocols
hyprlang
hyprutils
hyprwayland-scanner
libdrm
libpipewire-0.3
libspa-0.2
sdbus-cpp
wayland-client
wayland-protocols

Then run the build and install command:

git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland
cd xdg-desktop-portal-hyprland/
cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -B build
cmake --build build
sudo cmake --install build

Nix

Caution

XDPH should not be used from this flake directly!

Instead, use it from the Hyprland flake.

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).

Running, FAQs, etc.

See the Hyprland wiki