summaryrefslogtreecommitdiff
path: root/irfanview/irfanview-vlc
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-03 12:34:45 +0000
committerB Stack <bgstack15@gmail.com>2018-09-03 12:34:45 +0000
commit6967e4689461a02ea13d0bc8483f33b596711e42 (patch)
treef8a23c535815ec5e12224154768a33ee3247e4cf /irfanview/irfanview-vlc
parentMerge branch 'fix-veracrypt' into 'master' (diff)
parentAdd irfanview (diff)
downloadstackrpms-6967e4689461a02ea13d0bc8483f33b596711e42.tar.gz
stackrpms-6967e4689461a02ea13d0bc8483f33b596711e42.tar.bz2
stackrpms-6967e4689461a02ea13d0bc8483f33b596711e42.zip
Merge branch 'add-irfanview' into 'master'
Add irfanview See merge request bgstack15/stackrpms!2
Diffstat (limited to 'irfanview/irfanview-vlc')
-rwxr-xr-xirfanview/irfanview-vlc16
1 files changed, 16 insertions, 0 deletions
diff --git a/irfanview/irfanview-vlc b/irfanview/irfanview-vlc
new file mode 100755
index 0000000..a108c71
--- /dev/null
+++ b/irfanview/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