summaryrefslogtreecommitdiff
path: root/notepadpp/debian/notepadpp32
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-12-29 13:06:46 +0000
committerB Stack <bgstack15@gmail.com>2019-12-29 13:06:46 +0000
commite91826c52adadc90dcb12c10df19a7cf60ca3ac4 (patch)
tree0dd4e58c857c63e2f0e0b250ed66028effb35fc9 /notepadpp/debian/notepadpp32
parentMerge branch 'freefilesync-bump' into 'master' (diff)
downloadstackrpms-e91826c52adadc90dcb12c10df19a7cf60ca3ac4.tar.gz
stackrpms-e91826c52adadc90dcb12c10df19a7cf60ca3ac4.tar.bz2
stackrpms-e91826c52adadc90dcb12c10df19a7cf60ca3ac4.zip
Add notepad++ as notepadpp
Diffstat (limited to 'notepadpp/debian/notepadpp32')
-rw-r--r--notepadpp/debian/notepadpp3221
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 "$@"
bgstack15