mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 09:49:49 +01:00
Makefile: properly handle dbus & systemd services
This commit is contained in:
parent
676571b2c0
commit
0d2d2b20d4
3 changed files with 6 additions and 9 deletions
9
Makefile
9
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue