diff options
Diffstat (limited to 'notepadpp/debian/notepadpp32')
-rw-r--r-- | notepadpp/debian/notepadpp32 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/notepadpp/debian/notepadpp32 b/notepadpp/debian/notepadpp32 new file mode 100644 index 0000000..d78dbe0 --- /dev/null +++ b/notepadpp/debian/notepadpp32 @@ -0,0 +1,21 @@ +#!/bin/sh +# File: /usr/bin/notepadpp32 +# Locations: symlink /usr/bin/notepadpp +# Author: bgstack15@gmail.com +# Startdate: 2019-12-27 +# Title: Wrapper script for passing files to notepadpp +# Purpose: Converts file paths to a wine format and also handles compressed files +# History: +# Usage: notepadpp /path/to/file +# Reference: +# irfanview32 script from irfanview dpkg +# Improve: + +# load variables +test -z "${NPP_WINEPREFIX}" && export NPP_WINEPREFIX="$HOME/.wine" +test -n "${NPP_WINEPREFIX}" && export WINEPREFIX="${NPP_WINEPREFIX}" || export WINEPREFIX=$HOME/.wine +test -z "${NPP_EXEC_NAME}" && export NPP_EXEC_NAME="notepad++.exe" +test -z "${NPP_EXEC_PATH}" && export NPP_EXEC_PATH="/usr/share/notepadpp32/notepad++.exe" +export NPP_VALID_CALL=do_not_set_this_manually + +. notepadpp-common "$@" |