aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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