aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-05-14 08:28:33 -0700
committerRaúl Benencia <id@rbenencia.name>2024-05-14 17:35:32 -0700
commitc6a1587dc109a50e80a4222efaa3d85eb7c42883 (patch)
tree8079b0efdbdc0f9012ae59143116b43ba23d76ea
parent68989b715cae871482a96ce6d48735b4bbed38a3 (diff)
emacs: org-protocol handler
-rw-r--r--.local/share/applications/org-protocol.desktop11
-rw-r--r--Makefile1
2 files changed, 12 insertions, 0 deletions
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
nihil fit ex nihilo