From 5a1da61f314477bcfc5478f51ac344addcb8d4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Sat, 11 May 2024 12:31:41 +0200 Subject: [PATCH] Remove DWM-gnome session --- roles/dwm/files/usr/local/bin/dwm-gnome | 18 ------------- .../gnome-session/sessions/dwm-gnome.session | 5 ---- .../usr/share/xsessions/dwm-gnome.desktop | 7 ------ roles/dwm/tasks/dwm.yml | 25 ------------------- 4 files changed, 55 deletions(-) delete mode 100755 roles/dwm/files/usr/local/bin/dwm-gnome delete mode 100644 roles/dwm/files/usr/share/gnome-session/sessions/dwm-gnome.session delete mode 100644 roles/dwm/files/usr/share/xsessions/dwm-gnome.desktop diff --git a/roles/dwm/files/usr/local/bin/dwm-gnome b/roles/dwm/files/usr/local/bin/dwm-gnome deleted file mode 100755 index 2ea4992..0000000 --- a/roles/dwm/files/usr/local/bin/dwm-gnome +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -egister with gnome-session so that it does not kill the whole session thinking it is dead. -test -n "$DESKTOP_AUTOSTART_ID" && { - dbus-send --print-reply --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:dwm-gnome" "string:$DESKTOP_AUTOSTART_ID" -} - -# Support for merging .Xresources -test -e $HOME/.Xresources && { - xrdb -merge $HOME/.Xresources -} - -dwm - -# Logout process. -test -n "$DESKTOP_AUTOSTART_ID" && { - dbus-send --print-reply --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.Logout "uint32:1" -} diff --git a/roles/dwm/files/usr/share/gnome-session/sessions/dwm-gnome.session b/roles/dwm/files/usr/share/gnome-session/sessions/dwm-gnome.session deleted file mode 100644 index e72eb8e..0000000 --- a/roles/dwm/files/usr/share/gnome-session/sessions/dwm-gnome.session +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: conf -*- - -[GNOME Session] -Name=dwm-gnome -RequiredComponents=org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;dwm-gnome diff --git a/roles/dwm/files/usr/share/xsessions/dwm-gnome.desktop b/roles/dwm/files/usr/share/xsessions/dwm-gnome.desktop deleted file mode 100644 index 0bbc81c..0000000 --- a/roles/dwm/files/usr/share/xsessions/dwm-gnome.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Name=dwm + GNOME -Comment=Dymanic Window Manager with GNOME integration -Exec=gnome-session-dwm -Type=Aplications -DesktopNames=GNOME -X-Ubuntu-Gettext-Domain=gnome-session-3.0 diff --git a/roles/dwm/tasks/dwm.yml b/roles/dwm/tasks/dwm.yml index 7e77e08..2f1902b 100644 --- a/roles/dwm/tasks/dwm.yml +++ b/roles/dwm/tasks/dwm.yml @@ -50,24 +50,6 @@ src: usr/share/xsessions/dwm.desktop dest: /usr/share/xsessions/dwm.desktop -- name: copy xsession for gnome - become: yes - copy: - src: usr/share/xsessions/dwm-gnome.desktop - dest: /usr/share/xsessions/dwm-gnome.desktop - -- name: Create gnome session dir - become: yes - file: - path: /usr/share/gnome-session/sessions - state: directory - -- name: copy gnome session - become: yes - copy: - src: usr/share/gnome-session/sessions/dwm-gnome.session - dest: /usr/share/gnome-session/sessions/dwm-gnome.session - - name: copy icon become: yes copy: @@ -81,13 +63,6 @@ dest: /usr/local/bin/start-dwm mode: '0755' -- name: copy run script - become: yes - copy: - src: usr/local/bin/dwm-gnome - dest: /usr/local/bin/dwm-gnome - mode: '0755' - - name: install dwm become: yes register: make