Makefile: properly handle dbus & systemd services

This commit is contained in:
Mihai Fufezan 2023-09-10 18:59:07 +03:00
parent 676571b2c0
commit c9cc100606
No known key found for this signature in database
3 changed files with 6 additions and 9 deletions

View file

@ -15,7 +15,8 @@ debug:
install:
$(MAKE) release
cp ./build/hyprland-share-picker/hyprland-share-picker ${PREFIX}/bin
cp ./build/xdg-desktop-portal-hyprland ${LIBEXEC}/
cp ./hyprland.portal ${SHARE}/xdg-desktop-portal/portals/
cp ./org.freedesktop.impl.portal.desktop.hyprland.service ${SHARE}/dbus-1/services/
cp -f ./build/hyprland-share-picker/hyprland-share-picker ${PREFIX}/bin
cp -f ./build/xdg-desktop-portal-hyprland ${LIBEXEC}/
cp -f ./hyprland.portal ${SHARE}/xdg-desktop-portal/portals/
sed "s|@libexecdir@|${LIBEXEC}|g" ./org.freedesktop.impl.portal.desktop.hyprland.service.in > ${SHARE}/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland
sed "s|@libexecdir@|${LIBEXEC}|g" ./contrib/systemd/xdg-desktop-portal-hyprland.service.in > ${LIBEXEC}/systemd/user/xdg-desktop-portal-hyprland.service

View file

@ -1,4 +0,0 @@
[D-BUS Service]
Name=org.freedesktop.impl.portal.desktop.hyprland
Exec=/usr/lib/xdg-desktop-portal-hyprland
SystemdService=xdg-desktop-portal-hyprland.service

View file

@ -1,4 +1,4 @@
[D-BUS Service]
Name=org.freedesktop.impl.portal.desktop.hyprland
Exec=@libexecdir@/xdg-desktop-portal-hyprland
@systemd_service@
SystemdService=xdg-desktop-portal-hyprland.service