summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2023-08-30 06:17:22 +0200
committerAlan Pearce2023-08-30 06:18:09 +0200
commitefb3202e34e9a3b6fde26918d9e18706f5559dec (patch)
treeb2e731dd828c607f8305de487493cd396bbe9d7d /user/settings
parentb646228ff7cddab23840aec90dbdffe5f5b60429 (diff)
downloadnixfiles-efb3202e34e9a3b6fde26918d9e18706f5559dec.tar.lz
nixfiles-efb3202e34e9a3b6fde26918d9e18706f5559dec.tar.zst
nixfiles-efb3202e34e9a3b6fde26918d9e18706f5559dec.zip
Emacs: remove now-duplicate client desktop application file
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix22
1 files changed, 0 insertions, 22 deletions
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;
-  };
 }