Package Details: xdg-desktop-portal-hyprland-git 1.3.1.r14.g2d2fb547-1

Git Clone URL: https://aur.archlinux.org/xdg-desktop-portal-hyprland-git.git (read-only, click to copy)
Package Base: xdg-desktop-portal-hyprland-git
Description: xdg-desktop-portal backend for hyprland
Upstream URL: https://github.com/hyprwm/xdg-desktop-portal-hyprland
Licenses: BSD
Conflicts: xdg-desktop-portal-hyprland
Provides: xdg-desktop-portal-hyprland, xdg-desktop-portal-impl, xdg-desktop-portal-wlr
Submitter: That1Calculator
Maintainer: That1Calculator (Vaxry, alba4k)
Last Packager: alba4k
Votes: 25
Popularity: 1.40
First Submitted: 2022-12-04 01:43 (UTC)
Last Updated: 2024-03-18 16:23 (UTC)

Required by (25)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

pbo commented on 2024-02-24 12:19 (UTC)

@alba4k seems the .service file problem is still there.

alba4k commented on 2024-02-24 08:26 (UTC)

This package show now be working again

alba4k commented on 2024-02-23 13:17 (UTC) (edited on 2024-02-23 16:03 (UTC) by alba4k)

Hey t1c, would you mind adding me as comaintainer? or fix the package ig, that would work too. Vaxry should have messaged you.

quark23 commented on 2024-02-22 16:04 (UTC)

@grappas Was able to install xdg-desktop-portal-hyprland, then hyprlang-git, then xdg-desktop-portal-hyprland-git back. But now waybar doesn't start at startup. I have to run it a bit later, at startup for the first 1-2 minutes it fails to start.

grappas commented on 2024-02-18 12:33 (UTC)

there's in path (with hyprlang-git)

/usr/lib/libhyprlang.so
/usr/lib/libhyprlang.so.0.4.0
/usr/lib/libhyprlang.so.1

but

/usr/lib/xdg-desktop-portal-hyprland: error while loading shared libraries: libhyprlang.so.0: cannot open shared object file: No such file or directory

xiota commented on 2024-02-13 11:56 (UTC) (edited on 2024-02-13 12:20 (UTC) by xiota)

This package should not be used in its current state. It still contains many defects described in multiple comments since 2024-01-05.

Corrected PKGBUILD was made available in comment. Package was flagged (not by me) around 2024-01-20, but maintainer did not fix all issues in subsequent updates, even introducing new problems.

If maintainer does not fix this package, someone should open an orphan request for poor maintenance.

bvr commented on 2024-01-28 13:32 (UTC)

@Vaxry

this is how .service file looks now (Exec part) :D

[Unit]
Description=Portal service (Hyprland implementation)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY

[Service]
Type=dbus
BusName=org.freedesktop.impl.portal.desktop.hyprland
ExecStart=/home/bvr/.cache/yay/xdg-desktop-portal-hyprland-git/pkg/xdg-desktop-portal-hyprland-git/usr/lib/xdg-desktop-portal-hyprland
Restart=on-failure
Slice=session.slice

u should probably remove all references to ${pkgdir} in build() and use it package()

DESTDIR="$pkgdir" cmake --install build

doppelhelix commented on 2024-01-20 12:38 (UTC) (edited on 2024-01-20 12:40 (UTC) by doppelhelix)

besides the broken PKGBUILD it should be mentioned that there is now also the need for

/etc/xdg/xdg-desktop-portal/hyprland-portals.conf

please have a look at https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/171#issuecomment-1898969439

xiota commented on 2024-01-08 23:25 (UTC) (edited on 2024-01-20 14:16 (UTC) by xiota)

This package has many issues. Almost easier to rewrite from scratch, PKGBUILD (used by chaotic-aur).

  • Wrong pkgver format. Should be #.r#.g#.
  • license should be MIT. custom: prefix is not needed. See PKGBUILD#license.
  • provides should be versioned, "$_pkgname=${_pkgver%.r*}".
  • optdeps may not all be needed, optdeps generally pointless
  • options not needed. Bad practice to disregard user makeflags and buildflags.
  • pkgver() is overly complicated and not working as intended. (Doesn't matter that it's from the wiki. That piped code is broken and shouldn't be used.)
  • git submodules should be listed in source and initialized in prepare(). See VCS package guidelines.
    • The submodules are small and may not be worth the complicated setup. By convention, they should still be initialized in prepare().
    • While there are advantages to initializing in build() instead of prepare(), the default behavior should follow standard conventions.
  • cmake options need to be cleaned up/organized.
  • Additional options for cmake --build build are unnecessary.
  • -j nproc... should not be used. Users should set these up themselves in makepkg.conf.
  • cmake --install is missing DESTDIR.
  • License file is installed to wrong location. Should be "$pkgdir/usr/share/licenses/$pkgname" (not $_pkgname).

Updates:

  • Missing config file noted by doppelhelix.

sdave.b commented on 2024-01-07 18:00 (UTC) (edited on 2024-01-07 18:07 (UTC) by sdave.b)

I had to apply this patch to get it to build:

 diff --git a/PKGBUILD b/PKGBUILD
index 83cec62..c545ab9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,7 +36,7 @@ pkgver() {
 build() {
    cd "${srcdir}/${_pkgname}"
    git submodule update --init
-   cmake --no-warn-unused-cli -DCMAKE_INSTALL_LIBEXECDIR:STRING=/usr/lib -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH="${pkgdir}/usr" -S . -B ./build
+   cmake --no-warn-unused-cli -DCMAKE_INSTALL_LIBEXECDIR:STRING=${pkgdir}/usr/lib -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH="${pkgdir}/usr" -S . -B ./build
    cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
 }

Basically adding ${pkgdir} to the cmake build parameters so that it knows where to "fake install" the files before creating the package.