Path: blob/main/deskutils/docear/files/patch-docear.sh
16461 views
--- docear.sh.orig 2015-10-26 17:10:56 UTC1+++ docear.sh2@@ -1,4 +1,4 @@3-#!/bin/bash4+#!/bin/sh56# we only want to test the script, not Freeplane itself7if ( echo "${DEBUG}" | grep -qe "script" )8@@ -137,7 +137,7 @@ if [ -x $(which readlink) ] && [ "`echo9then # if we have 'readlink' we can use it to get an absolute path10# -m should be faster and link does always resolve, else this script11# wouldn't be called, would it?12- freefile=$(readlink -mn "$0")13+ freefile=$(readlink -n "$0")14_debug "Link '$0' resolved to '${freefile}'."15else16freefile="$0"17@@ -190,6 +190,7 @@ then # non-Sun environments don't work c18fi19_debug "Calling: "\20"${JAVACMD}" -Xmx512m\21+ "-Dawt.useSystemAAFontSettings=on"\22"-Dorg.freeplane.param1=$1"\23"-Dorg.freeplane.param2=$2"\24"-Dorg.freeplane.param3=$3"\25@@ -204,6 +205,7 @@ _debug "Calling: "\26-xargs "${freedir}/init.xargs"27( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start Freeplane28"${JAVACMD}" -Xmx512m\29+ "-Dawt.useSystemAAFontSettings=on"\30"-Dorg.freeplane.param1=$1"\31"-Dorg.freeplane.param2=$2"\32"-Dorg.freeplane.param3=$3"\333435