From a02d9885097e3125c4eeefb23d5aae9e81169d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 21 Apr 2024 15:27:22 +0200 Subject: [PATCH] Generation 94 2024-04-21 15:27:21 (current) --- home/jonas/doom.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/home/jonas/doom.nix b/home/jonas/doom.nix index 481e317..794b5e8 100644 --- a/home/jonas/doom.nix +++ b/home/jonas/doom.nix @@ -91,11 +91,22 @@ in { }; }; desktopEntries = { - doom = { + doom-server = { + name = "Doom Emacs (Server)"; + genericName = "Text Editor"; + icon = ./static/doom-config/icon.png; + exec = "${wrapped-emacs}/bin/emacs %F"; + terminal = false; + categories = ["Application" "Development"]; + mimeType = ["text/*"]; + }; + doom-client = { name = "Doom Emacs"; genericName = "Text Editor"; icon = ./static/doom-config/icon.png; - exec = "${wrapped-emacs}/bin/emacs %U"; + exec = '' + sh -c "if [ -n \\"\\$*\\" ]; then exec ${wrapped-emacs}/bin/emacs-client --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F + ''; terminal = false; categories = ["Application" "Development"]; mimeType = ["text/*"];