summaryrefslogtreecommitdiff
path: root/irfanview/debian/irfanview-vlc
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-21 17:31:48 +0000
committerB Stack <bgstack15@gmail.com>2019-02-21 17:31:48 +0000
commitbe03e4beda29e7952ce289d57749c60fd97003d3 (patch)
treece3c10911f48eb451e5f085a39a2524bced7ed67 /irfanview/debian/irfanview-vlc
parentMerge branch 'palemoon-bump' into 'master' (diff)
parentirfanview dpkg (diff)
downloadstackrpms-be03e4beda29e7952ce289d57749c60fd97003d3.tar.gz
stackrpms-be03e4beda29e7952ce289d57749c60fd97003d3.tar.bz2
stackrpms-be03e4beda29e7952ce289d57749c60fd97003d3.zip
Merge branch 'irfanview-dpkg' into 'master'
irfanview dpkg See merge request bgstack15/stackrpms!41
Diffstat (limited to 'irfanview/debian/irfanview-vlc')
-rwxr-xr-xirfanview/debian/irfanview-vlc16
1 files changed, 16 insertions, 0 deletions
diff --git a/irfanview/debian/irfanview-vlc b/irfanview/debian/irfanview-vlc
new file mode 100755
index 0000000..a108c71
--- /dev/null
+++ b/irfanview/debian/irfanview-vlc
@@ -0,0 +1,16 @@
+#!/bin/sh
+# file: /usr/share/irfan/inc/irfan-vlc.sh
+# purpose: to correct filenames if passed to an external editor from wine-irfan.
+devtty=/dev/null
+a="$@"
+vlcargs=
+{
+for word in "$@";
+do
+ newword=$( echo "${word##Z:}" | sed 's!\\!\/!g;' )
+ vlcargs="${vlcargs} ${newword}"
+ #echo "vlcargs=${vlcargs}"
+done
+vlcargs="${vlcargs## }"
+/usr/bin/vlc "${vlcargs}"
+} > ${devtty}
bgstack15