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
commit5dd2ccf0878b4d9939999cd7904e2361522c73d9 (patch)
tree0dd4e58c857c63e2f0e0b250ed66028effb35fc9 /notepadpp/debian/notepadpp32
parentMerge branch 'freefilesync-bump' into 'master' (diff)
parentAdd notepad++ as notepadpp (diff)
downloadstackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.tar.gz
stackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.tar.bz2
stackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.zip
Merge branch 'notepadpp-bump' into 'master'
Add notepad++ as notepadpp See merge request bgstack15/stackrpms!112
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