hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Service failing if using `-git` version aur #182

Closed niksingh710 closed 7 months ago

niksingh710 commented 7 months ago
[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/niksingh710/.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

This is how the service is looking. Also check comments here

vaxerski commented 7 months ago

it is poorly maintained cuz it's owned by kainoa and I dont have time or knowledge to properly maintain it.

niksingh710 commented 7 months ago

it is poorly maintained cuz it's owned by kainoa and I dont have time or knowledge to properly maintain it.

Aah, thought you maintain it as your name was mentioned there. Though no discussion remains here as it seems to be either rely on xdph package and wait to be updated by arch maintainers.

vaxerski commented 7 months ago

also the last comment there if thats what you are referring to is due to an update. Recompile xdph.

niksingh710 commented 7 months ago

if anyone else facing this

then i will recommend to use the nuclear solution from the wiki

salimp2009 commented 6 months ago

if anyone else facing this

then i will recommend to use the nuclear solution from the wiki

what is the nuclear option. I could not see in the wiki Also I just update xdph-git and here is the service thing

[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=/usr/lib/xdg-desktop-portal-hyprland
Restart=on-failure
Slice=session.slice

but still getting this error image Ok. so I also tried this

#!/usr/bin/env bash
sleep 1
killall -e xdg-desktop-portal-hyprland
killall -e xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &

still getting the same error for xdph.service failed error :(

salimp2009 commented 6 months ago

I also looked at /usr/share/xdg-desktop-portal/ folder and there is hyprland-portals.conf in there too. So it looks like the package is updated but somehow it is failing. it used to work properly before. I was not using the -git package tough but since hyprland-git required hyprcursor and hyprlang newer version, I had to used xdph-git . image