From efb3202e34e9a3b6fde26918d9e18706f5559dec Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 30 Aug 2023 06:17:22 +0200 Subject: Emacs: remove now-duplicate client desktop application file --- user/settings/emacs.nix | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'user/settings') diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 7e7a5a58..1f59c1c9 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -21,24 +21,6 @@ let exec ${config.programs.emacs.finalPackage}/bin/emacsclient --alternate-editor ${config.programs.emacs.finalPackage}/bin/emacs --create-frame "$@" fi ''; - desktopApplicationFile = pkgs.writeTextFile { - name = "emacsclient.desktop"; - destination = "/share/applications/emacsclient.desktop"; - text = '' - [Desktop Entry] - Name=Emacsclient - GenericName=Text Editor - Comment=Edit text - MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; - Exec=${editorScript}/bin/edit %F - Icon=emacs - Type=Application - Terminal=false - Categories=Development;TextEditor; - StartupWMClass=Emacs - Keywords=Text;Editor; - ''; - }; in { imports = [ @@ -204,8 +186,4 @@ in xdg.configFile."emacs/init.el" = { source = ../emacs/init.el; }; - - home.file.".local/share/applications/emacsclient.desktop" = lib.mkIf stdenv.isLinux { - source = desktopApplicationFile; - }; } -- cgit 1.4.1