home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 07f1ea40fe6cd12417cc50fca447bfc96add18e5
parent 531b4c0f1a8cef5f4a38315889049a808a32f40e
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 22 Aug 2018 16:47:21 +0200

Add org-protocol desktop file to handle org-protocol on firefox

It works really well ! 😎

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mbase.nix | 2+-
Mdesktop.nix | 1+
Mfish/nix-aliases.fish | 4++++
Axorg/org-protocol.desktop | 7+++++++
4 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/base.nix b/base.nix @@ -7,7 +7,7 @@ rec { programs = { home-manager = { enable = true; - path = https://github.com/vdemeester/home-manager/archive/fish-module.tar.gz; + path = https://github.com/vdemeester/home-manager/archive/master.tar.gz; }; }; home.file.".nix-channels".source = ./nix-channels; diff --git a/desktop.nix b/desktop.nix @@ -23,6 +23,7 @@ xdg.configFile."xorg/parens.compose".source = ./xorg/parens.compose; xdg.configFile."xorg/modletters.compose".source = ./xorg/modletters.compose; xdg.configFile."user-dirs.dirs".source = ./xorg/user-dirs.dirs; + home.file.".local/share/applications/org-protocol.desktop".source = ./xorg/org-protocol.desktop; services = { gpg-agent = { enable = true; diff --git a/fish/nix-aliases.fish b/fish/nix-aliases.fish @@ -9,3 +9,7 @@ end function op nix run -f ~/.config/nixpkgs/channels.nix unstable.1password -c op $argv end + +function update-desktop-database + nix run nixpkgs.desktop-file-utils -c update-desktop-database $argv +end diff --git a/xorg/org-protocol.desktop b/xorg/org-protocol.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=org-protocol +Exec=/home/vincent/.nix-profile/bin/emacsclient -c -n %u +Type=Application +Terminal=false +Categories=System; +MimeType=x-scheme-handler/org-protocol;