diff options
author | Lin Jian <me@linj.tech> | 2024-01-20 15:39:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 15:39:37 +0800 |
commit | 436929e97271800238975906de37e345d4c02c21 (patch) | |
tree | dcb2d61f850611df497c73e20fc6ba0d8803a03c /nixos | |
parent | b126cd543fd1e1b9d4499b614752f455ad76aa7e (diff) | |
parent | 20f07b4aa90974a569b313e889c6d21df6612415 (diff) |
Merge pull request #282174 from linj-fork/pr/remove-emacsclient-desktop
nixos/emacs: drop custom emacsclient desktop file
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/editors/emacs.nix | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/nixos/modules/services/editors/emacs.nix b/nixos/modules/services/editors/emacs.nix index 6f45be6640bc6..ff6fd85d8a9b7 100644 --- a/nixos/modules/services/editors/emacs.nix +++ b/nixos/modules/services/editors/emacs.nix @@ -15,25 +15,6 @@ let 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=emacseditor %F - Icon=emacs - Type=Application - Terminal=false - Categories=Development;TextEditor; - StartupWMClass=Emacs - Keywords=Text;Editor; - ''; - }; - in { @@ -102,7 +83,7 @@ in wantedBy = if cfg.startWithGraphical then [ "graphical-session.target" ] else [ "default.target" ]; }; - environment.systemPackages = [ cfg.package editorScript desktopApplicationFile ]; + environment.systemPackages = [ cfg.package editorScript ]; environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "emacseditor"); }; |