summarylogtreecommitdiffstats
path: root/01-package-path.patch
diff options
context:
space:
mode:
authorQuint Guvernator2020-10-30 19:22:39 +0100
committerQuint Guvernator2020-10-30 19:36:15 +0100
commitd6c1b30e173ebfcdb5df9cc5f0965ec48d0311f9 (patch)
tree58ed84e962041439670f0257d3ef2f75855c62ac /01-package-path.patch
parente388095fd56455c7ab54666197f439e8a94cd75a (diff)
parent68d14da2959dc9a91895c6085f0878153b158746 (diff)
downloadaur-d6c1b30e173ebfcdb5df9cc5f0965ec48d0311f9.tar.gz
merge suggestions from saengowp
Diffstat (limited to '01-package-path.patch')
-rw-r--r--01-package-path.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/01-package-path.patch b/01-package-path.patch
new file mode 100644
index 000000000000..03e17e047070
--- /dev/null
+++ b/01-package-path.patch
@@ -0,0 +1,32 @@
+diff --git a/HP-15C.tcl b/HP-15C.tcl
+old mode 100644
+new mode 100755
+index 50238bb..209392b
+--- a/HP-15C.tcl
++++ b/HP-15C.tcl
+@@ -62,7 +62,7 @@ array set APPDATA {
+ }
+
+ set APPDATA(SerialNo) "$APPDATA(build)[string map {. {}} $APPDATA(version)]"
+-set APPDATA(basedir) [file dirname [info script]]
++set APPDATA(basedir) "/usr/lib/hp15c"
+ set APPDATA(locale) [mclocale]
+
+ # Load language according to current locale
+@@ -3252,14 +3253,7 @@ proc help { topic } {
+
+ switch $topic {
+ simulator {
+-# Differentiate between running from a starpack or from wish
+- if {[info exists ::starkit::topdir]} {
+- set helpdir [file dirname $::starkit::topdir]
+- } else {
+- set helpdir [file dirname $::argv0]
+- }
+- if {[string compare $helpdir "."] == 0} {set helpdir [pwd]}
+- set helpfile "$helpdir/doc/index.htm"
++ set helpfile "/usr/share/doc/hp15c/index.htm"
+ }
+ prgm {
+ set helpfile "$HP15(prgmdir)/$HP15(prgmname).htm"
+---