summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorIzmyname <VI-MCMXCV@proton.me>2024-11-07 21:01:12 +0500
committerMihai Fufezan <mihai@fufexan.net>2024-11-11 16:52:42 +0200
commitccfae82ad1c1a97d06efe980d6ba0dd72be4116c (patch)
tree00f6e51155fd62c251a22edeb7bc1529c5537629 /systemd
parent430b5c302a358faf888a015a7a7009a824e62d99 (diff)
rename hyprland-systemd.desktop and remove hyprland-session.service
Diffstat (limited to 'systemd')
-rw-r--r--systemd/hyprland-session.service.in16
-rw-r--r--systemd/hyprland-uwsm.desktop (renamed from systemd/hyprland-systemd.desktop)0
-rw-r--r--systemd/meson.build14
3 files changed, 1 insertions, 29 deletions
diff --git a/systemd/hyprland-session.service.in b/systemd/hyprland-session.service.in
deleted file mode 100644
index dafdc141..00000000
--- a/systemd/hyprland-session.service.in
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Hyprland - Tiling compositor with the looks
-Documentation=man:Hyprland(1)
-BindsTo=graphical-session.target
-Before=graphical-session.target
-Wants=xdg-desktop-autostart.target
-Wants=graphical-session-pre.target
-After=graphical-session-pre.target
-
-[Service]
-Type=notify
-ExecStart=@PREFIX@/@BINDIR@/Hyprland
-ExecStop=@PREFIX@/@BINDIR@/hyprctl dispatch exit
-ExecStopPost=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
-Restart=on-failure
-Slice=session.slice
diff --git a/systemd/hyprland-systemd.desktop b/systemd/hyprland-uwsm.desktop
index 2ed1031b..2ed1031b 100644
--- a/systemd/hyprland-systemd.desktop
+++ b/systemd/hyprland-uwsm.desktop
diff --git a/systemd/meson.build b/systemd/meson.build
index 2cd5312a..731f04e3 100644
--- a/systemd/meson.build
+++ b/systemd/meson.build
@@ -1,17 +1,5 @@
install_data(
- 'hyprland-systemd.desktop',
+ 'hyprland-uwsm.desktop',
install_dir: join_paths(get_option('datadir'), 'wayland-sessions'),
install_tag: 'runtime',
)
-
-conf_data = configuration_data()
-conf_data.set('PREFIX', get_option('prefix'))
-conf_data.set('BINDIR', get_option('bindir'))
-user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir',
- pkgconfig_define: ['prefix', get_option('prefix')])
-
-configure_file(
- configuration: conf_data,
- input: 'hyprland-session.service.in',
- output: '@BASENAME@',
- install_dir: user_unit_dir )