Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/deskutils/docear/files/patch-docear.sh
16461 views
1
--- docear.sh.orig 2015-10-26 17:10:56 UTC
2
+++ docear.sh
3
@@ -1,4 +1,4 @@
4
-#!/bin/bash
5
+#!/bin/sh
6
7
# we only want to test the script, not Freeplane itself
8
if ( echo "${DEBUG}" | grep -qe "script" )
9
@@ -137,7 +137,7 @@ if [ -x $(which readlink) ] && [ "`echo
10
then # if we have 'readlink' we can use it to get an absolute path
11
# -m should be faster and link does always resolve, else this script
12
# wouldn't be called, would it?
13
- freefile=$(readlink -mn "$0")
14
+ freefile=$(readlink -n "$0")
15
_debug "Link '$0' resolved to '${freefile}'."
16
else
17
freefile="$0"
18
@@ -190,6 +190,7 @@ then # non-Sun environments don't work c
19
fi
20
_debug "Calling: "\
21
"${JAVACMD}" -Xmx512m\
22
+ "-Dawt.useSystemAAFontSettings=on"\
23
"-Dorg.freeplane.param1=$1"\
24
"-Dorg.freeplane.param2=$2"\
25
"-Dorg.freeplane.param3=$3"\
26
@@ -204,6 +205,7 @@ _debug "Calling: "\
27
-xargs "${freedir}/init.xargs"
28
( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start Freeplane
29
"${JAVACMD}" -Xmx512m\
30
+ "-Dawt.useSystemAAFontSettings=on"\
31
"-Dorg.freeplane.param1=$1"\
32
"-Dorg.freeplane.param2=$2"\
33
"-Dorg.freeplane.param3=$3"\
34
35