summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-05-16 20:31:23 +0100
committerGitHub <[email protected]>2025-05-16 20:31:23 +0100
commita3408a3e811517ba4333766189eb43aeb7915ecc (patch)
tree6a392dae4dda1c833df853b842163d6b2aa38b81
parent96a87bfadd7bee36c9a4dd7b1d0a3c9ce49714df (diff)
parentee7e9aba281337f45f499eeef9b39c5e18b9f2d0 (diff)
Merge pull request #11 from bbergeron0/feature-desktop-entry
Add XSession desktop entry for sxwm
-rw-r--r--Makefile7
-rw-r--r--sxwm.desktop6
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7c69201..ad457e6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ OBJ_DIR := build
SRC := $(wildcard $(SRC_DIR)/*.c)
OBJ := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRC))
+XSESSIONS := $(DESTDIR)$(PREFIX)/share/xsessions
+
all: $(BIN)
$(BIN): $(OBJ)
@@ -27,11 +29,16 @@ install: all
@echo "Installing $(BIN) to $(DESTDIR)$(PREFIX)/bin..."
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@install -m 755 $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ @echo "Installing sxwm.desktop to $(XSESSIONS)..."
+ @mkdir -p $(XSESSIONS)
+ @install -m 644 sxwm.desktop $(XSESSIONS)/sxwm.desktop
@echo "Installation complete."
uninstall:
@echo "Uninstalling $(BIN) from $(DESTDIR)$(PREFIX)/bin..."
@rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ @echo "Uninstalling sxwm.desktop from $(XSESSIONS)..."
+ @rm -f $(XSESSIONS)/sxwm.desktop
@echo "Uninstallation complete."
.PHONY: all clean install uninstall
diff --git a/sxwm.desktop b/sxwm.desktop
new file mode 100644
index 0000000..51fbf89
--- /dev/null
+++ b/sxwm.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Sxwm
+Comment=Simple Xorg Window Manager
+Exec=sxwm
+Type=XSession