flatpak: remove references to systemd unit (#7676)

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.

Follow up to #7433
pull/7678/head
Mitchell Hashimoto 2025-06-24 19:06:07 -04:00 committed by GitHub
commit 820b7e432b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: ..