New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solving #30396 #35896
Solving #30396 #35896
Conversation
A desktop file for starting emacsclient is of interest not only when using the NiXOS emacs service, but when using emacs in general, as there are other ways of starting it. I think it would be better the desktop file installed by the emacs package itself. |
This particular |
So this desktop file as it is belongs to the NiXOS emacs service, as you have proposed. My suggestion is to merge your PR now. Later on the |
Maybe you could also use the helper function |
Probably |
Where is the difference between Edit: I made the changes. There is no way to specify the out path of |
On my NixOS system |
|
What is the current matter on this? |
This custom emacsclient desktop file was added[1] to Nixpkgs when the upstream did not provide one. Since an emacsclient desktop file is provided[2] by the upstream now, we should remove our custom one from Nixpkgs to reduce maintenance burden[3]. Fixes NixOS#245533 [1]: NixOS#35896 [2]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1a845a672dc73c8e98e6cb9bb734616e168e60ba [3]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1500e4b4329d4d3d0141263230d74e1b314373b1
This custom emacsclient desktop file was added[1] to Nixpkgs when the upstream did not provide one. Since an emacsclient desktop file is provided[2] by the upstream now, we should remove our custom one from Nixpkgs to reduce maintenance burden[3]. Fixes #245533 [1]: #35896 [2]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1a845a672dc73c8e98e6cb9bb734616e168e60ba [3]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1500e4b4329d4d3d0141263230d74e1b314373b1 (cherry picked from commit 20f07b4)
This custom emacsclient desktop file was added[1] to Nixpkgs when the upstream did not provide one. Since an emacsclient desktop file is provided[2] by the upstream now, we should remove our custom one from Nixpkgs to reduce maintenance burden[3]. Fixes NixOS#245533 [1]: NixOS#35896 [2]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1a845a672dc73c8e98e6cb9bb734616e168e60ba [3]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1500e4b4329d4d3d0141263230d74e1b314373b1
This custom emacsclient desktop file was added[1] to Nixpkgs when the upstream did not provide one. Since an emacsclient desktop file is provided[2] by the upstream now, we should remove our custom one from Nixpkgs to reduce maintenance burden[3]. Fixes NixOS#245533 [1]: NixOS#35896 [2]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1a845a672dc73c8e98e6cb9bb734616e168e60ba [3]: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/emacsclient.desktop?id=1500e4b4329d4d3d0141263230d74e1b314373b1
Motivation for this change
#30396
DR:
When setting
services.emacs.enable = true;
, a custom shell script to startemacsclient
, namelyemacseditor
is build. This PR adds the generation of.desktop
to/share/applications/
, so thatemacseditor
can be run from an ordinary GUI program launcher.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)