From 4c9f42eea9fb60e68a1d2d3873f628a34116b565 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 13 Feb 2020 18:39:32 +0100 Subject: [PATCH] data: Use org.gnome.Shell prefix for systemd units In general we want to move towards using reverse domain names for systemd units. Doing this also means we have a consistent name between desktop file and systemd unit, allowing us to create a generator that pulls in the unit as defined in the sessions RequiredComponents. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/895 --- data/meson.build | 14 +++++++------- ... => org.gnome.Shell-disable-extensions.service} | 0 ...rvice.in => org.gnome.Shell-wayland.service.in} | 2 +- ...yland.target => org.gnome.Shell-wayland.target} | 4 ++-- ...1.service.in => org.gnome.Shell-x11.service.in} | 2 +- ...shell-x11.target => org.gnome.Shell-x11.target} | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) rename data/{gnome-shell-disable-extensions.service => org.gnome.Shell-disable-extensions.service} (100%) rename data/{gnome-shell-wayland.service.in => org.gnome.Shell-wayland.service.in} (91%) rename data/{gnome-shell-wayland.target => org.gnome.Shell-wayland.target} (70%) rename data/{gnome-shell-x11.service.in => org.gnome.Shell-x11.service.in} (91%) rename data/{gnome-shell-x11.target => org.gnome.Shell-x11.target} (72%) diff --git a/data/meson.build b/data/meson.build index 803e68289..da9d704f7 100644 --- a/data/meson.build +++ b/data/meson.build @@ -101,22 +101,22 @@ if have_systemd unitconf.set('bindir', bindir) configure_file( - input: 'gnome-shell-x11.service.in', - output: 'gnome-shell-x11.service', + input: 'org.gnome.Shell-x11.service.in', + output: 'org.gnome.Shell-x11.service', configuration: unitconf, install_dir: systemduserunitdir ) configure_file( - input: 'gnome-shell-wayland.service.in', - output: 'gnome-shell-wayland.service', + input: 'org.gnome.Shell-wayland.service.in', + output: 'org.gnome.Shell-wayland.service', configuration: unitconf, install_dir: systemduserunitdir ) - units = files('gnome-shell-x11.target', - 'gnome-shell-wayland.target', - 'gnome-shell-disable-extensions.service') + units = files('org.gnome.Shell-x11.target', + 'org.gnome.Shell-wayland.target', + 'org.gnome.Shell-disable-extensions.service') install_data(units, install_dir: systemduserunitdir) endif diff --git a/data/gnome-shell-disable-extensions.service b/data/org.gnome.Shell-disable-extensions.service similarity index 100% rename from data/gnome-shell-disable-extensions.service rename to data/org.gnome.Shell-disable-extensions.service diff --git a/data/gnome-shell-wayland.service.in b/data/org.gnome.Shell-wayland.service.in similarity index 91% rename from data/gnome-shell-wayland.service.in rename to data/org.gnome.Shell-wayland.service.in index 100be7f0f..ec79cd55c 100644 --- a/data/gnome-shell-wayland.service.in +++ b/data/org.gnome.Shell-wayland.service.in @@ -1,7 +1,7 @@ [Unit] Description=GNOME Shell on Wayland # On wayland, force a session shutdown -OnFailure=gnome-shell-disable-extensions.service gnome-session-shutdown.target +OnFailure=org.gnome.Shell-disable-extensions.service gnome-session-shutdown.target OnFailureJobMode=replace-irreversibly CollectMode=inactive-or-failed RefuseManualStart=on diff --git a/data/gnome-shell-wayland.target b/data/org.gnome.Shell-wayland.target similarity index 70% rename from data/gnome-shell-wayland.target rename to data/org.gnome.Shell-wayland.target index 37e1966d9..2cb2c2e60 100644 --- a/data/gnome-shell-wayland.target +++ b/data/org.gnome.Shell-wayland.target @@ -6,5 +6,5 @@ Requisite=gnome-session-initialized.target PartOf=gnome-session-initialized.target Before=gnome-session-initialized.target -Requires=gnome-shell-wayland.service -After=gnome-shell-wayland.service +Requires=org.gnome.Shell-wayland.service +After=org.gnome.Shell-wayland.service diff --git a/data/gnome-shell-x11.service.in b/data/org.gnome.Shell-x11.service.in similarity index 91% rename from data/gnome-shell-x11.service.in rename to data/org.gnome.Shell-x11.service.in index a10c33d29..5e85f486c 100644 --- a/data/gnome-shell-x11.service.in +++ b/data/org.gnome.Shell-x11.service.in @@ -1,7 +1,7 @@ [Unit] Description=GNOME Shell on X11 # On X11, try to show the GNOME Session Failed screen -OnFailure=gnome-shell-disable-extensions.service gnome-session-failed.target +OnFailure=org.gnome.Shell-disable-extensions.service gnome-session-failed.target OnFailureJobMode=replace CollectMode=inactive-or-failed RefuseManualStart=on diff --git a/data/gnome-shell-x11.target b/data/org.gnome.Shell-x11.target similarity index 72% rename from data/gnome-shell-x11.target rename to data/org.gnome.Shell-x11.target index f4af2c8dd..02d61822b 100644 --- a/data/gnome-shell-x11.target +++ b/data/org.gnome.Shell-x11.target @@ -6,5 +6,5 @@ Requisite=gnome-session-initialized.target PartOf=gnome-session-initialized.target Before=gnome-session-initialized.target -Requires=gnome-shell-x11.service -After=gnome-shell-x11.service +Requires=org.gnome.Shell-x11.service +After=org.gnome.Shell-x11.service