all repos — nixfiles @ efb3202e34e9a3b6fde26918d9e18706f5559dec

System and user configuration, managed by nix and home-manager

Emacs: remove now-duplicate client desktop application file
Alan Pearce alan@alanpearce.eu
Wed, 30 Aug 2023 06:17:22 +0200
commit

efb3202e34e9a3b6fde26918d9e18706f5559dec

parent

b646228ff7cddab23840aec90dbdffe5f5b60429

1 files changed, 0 insertions(+), 22 deletions(-)

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -21,24 +21,6 @@ else       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 = [
@@ -203,9 +185,5 @@ source = ../emacs/early-init.el;   };
   xdg.configFile."emacs/init.el" = {
     source = ../emacs/init.el;
-  };
-
-  home.file.".local/share/applications/emacsclient.desktop" = lib.mkIf stdenv.isLinux {
-    source = desktopApplicationFile;
   };
 }