flatpak: remove references to systemd unit

Flatpak currently does not export systemd user units. As such, remove
references to it from D-Bus services to prevent D-Bus daemon from trying
to start a non-existent service.

Additionally, make sure that the D-Bus service name is correct for debug
builds.
This commit is contained in:
Leorize
2025-06-23 20:31:53 -05:00
parent 977cd530c7
commit 32e61d2a23
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,13 @@ modules:
--prefix /app
--search-prefix /app
--system $PWD/vendor/p
# Rename to match service and drop systemd references
- sed -e 's/^Name=.*/\0-debug/'
-e '/^SystemdService=/d'
/app/share/dbus-1/services/com.mitchellh.ghostty.service
> /app/share/dbus-1/services/com.mitchellh.ghostty-debug.service
- rm /app/share/dbus-1/services/com.mitchellh.ghostty.service
sources:
- type: dir
path: ..

View File

@ -47,6 +47,10 @@ modules:
--prefix /app
--search-prefix /app
--system $PWD/vendor/p
# Remove references to the user service. Flatpak does not export those.
- sed -i '/^SystemdService=/d'
/app/share/dbus-1/services/com.mitchellh.ghostty.service
sources:
- type: dir
path: ..