aboutsummaryrefslogtreecommitdiff
path: root/199/index.md
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-09-28 20:26:15 +0200
committerRodrigo <rodarima@gmail.com>2025-09-28 23:10:55 +0200
commitfb510ea86be5ceb9e91573890242581fdbd77ad8 (patch)
treed819fe40683592008d136727f5a0b03e48dc1164 /199/index.md
Initial versionHEADmain
Diffstat (limited to '199/index.md')
-rw-r--r--199/index.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/199/index.md b/199/index.md
new file mode 100644
index 0000000..92f6990
--- /dev/null
+++ b/199/index.md
@@ -0,0 +1,14 @@
+Title: Allow actions to be defined to handle URLs
+Author: rodarima
+Created: Fri, 14 Jun 2024 20:32:45 +0000
+State: closed
+
+Implements the logic to read rules from ~/.dillo/rulesrc which define custom actions to handle a URL. Here is an example:
+
+ action "Open with MPV" shell "mpv $url"
+ action "Open with MPV (only audio)" shell "mpv --no-video $url"
+ action "Open with Firefox" shell "firefox $url"
+
+The standard input and output is still redirected to the same file descriptor as Dillo.
+
+The commands are spawned in a forked process using the system() call, which uses the shell to expand any variable. In particular, the $url variable is set to the current URL being opened. \ No newline at end of file