From c6a1587dc109a50e80a4222efaa3d85eb7c42883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 14 May 2024 08:28:33 -0700 Subject: emacs: org-protocol handler --- .local/share/applications/org-protocol.desktop | 11 +++++++++++ Makefile | 1 + 2 files changed, 12 insertions(+) create mode 100644 .local/share/applications/org-protocol.desktop diff --git a/.local/share/applications/org-protocol.desktop b/.local/share/applications/org-protocol.desktop new file mode 100644 index 0000000..31c3e31 --- /dev/null +++ b/.local/share/applications/org-protocol.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=org-protocol +Comment=Intercept calls from emacsclient to trigger custom actions +Categories=Other; +Keywords=org-protocol; +Icon=emacs +Type=Application +Exec=emacsclient -c -- %u +Terminal=false +StartupWMClass=Emacs +MimeType=text/html;x-scheme-handler/org-protocol; diff --git a/Makefile b/Makefile index d3a9af3..f77b891 100644 --- a/Makefile +++ b/Makefile @@ -7,3 +7,4 @@ bin_file_name := 10-$(cur_dir) all: $(bin_dir)/pycombine -e '(Makefile|README.md|debian)' "$(HOME)" "$(repo_dir)" + xdg-settings set default-url-scheme-handler org-protocol org-protocol.desktop -- cgit v1.2.3