Add an `xdgopen' opener that just xdg-open - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
HTML hg clone https://bitbucket.org/iamleot/plumb
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR changeset 3a9945a508315096587a7ff90ac8951740e58a1b
DIR parent f8464c6d75b4057844da772c56ad3e0de39233b3
HTML Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 4 Apr 2018 01:53:15
Add an `xdgopen' opener that just xdg-open
XXX: Actually it is completely identical to `web' opener...
XXX: ...due poossible customization and possible different sematic
XXX: keep them separate.
Diffstat:
openers/xdgopen | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff -r f8464c6d75b4 -r 3a9945a50831 openers/xdgopen
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/openers/xdgopen Wed Apr 04 01:53:15 2018 +0200
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for u in "$@"; do
+ xdg-open "$u" >/dev/null 2>&1 &
+done