From 17e5a4a64b2297718edbca30d34ca9955b8da237 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 21 Feb 2019 17:31:48 +0000 Subject: irfanview dpkg --- irfanview/debian/irfanview-vlc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 irfanview/debian/irfanview-vlc (limited to 'irfanview/debian/irfanview-vlc') 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} -- cgit