Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
tuxguitar
tuxguitar-startscript.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tuxguitar-startscript.patch of Package tuxguitar
--- tuxguitar-1.5.4-src/misc/tuxguitar.sh 2020-05-12 19:46:29.000000000 +0200 +++ tuxguitar-1.5.4-src/misc/tuxguitar.sh 2020-07-08 09:19:22.039193449 +0200 @@ -65,6 +65,8 @@ [ -r "$t" ] && f="$t" t="/usr/lib/java/swt.jar" [ -r "$t" ] && f="$t" + t="/usr/lib64/java/swt.jar" + [ -r "$t" ] && f="$t" t="/usr/lib/java/swt-gtk-3.5.1.jar" [ -r "$t" ] && f="$t" t="/usr/share/java/swt-gtk-3.4.jar" @@ -114,7 +116,7 @@ # java [ -z ${JAVA_HOME} ] && t=$(java_guess_) && [ -d "$t" ] && JAVA_HOME="$t" - if [ -d "${JAVA_HOME}" ] ; then + if [ -d "${JAVA_HOME}/jre/bin/java" ] ; then export JAVA_HOME JAVA="${JAVA:=${JAVA_HOME}/jre/bin/java}" [ -x ${JAVA} ] && export JAVA @@ -124,13 +126,10 @@ fi # mozilla - [ -z ${MOZILLA_FIVE_HOME} ] \ - && t=$(mozilla_guess_) && [ -d "$t" ] && MOZILLA_FIVE_HOME="$t" - if [ -d "$MOZILLA_FIVE_HOME" ] ; then - export MOZILLA_FIVE_HOME - export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME" - else - echo '$MOZILLA_FIVE_HOME not valid : check doc shipped w/ tuxguitar' + if [ -z $MOZILLA_FIVE_HOME ]; then + MOZILLA_FIVE_HOME=/usr/lib64/firefox + [ ! -d ${MOZILLA_FIVE_HOME} ] && MOZILLA_FIVE_HOME=/usr/lib64/mozilla + [ ! -d ${MOZILLA_FIVE_HOME} ] && MOZILLA_FIVE_HOME=/usr/lib64/iceweasel fi [ ! -z ${DEBUG} ] && echo "# MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME}" @@ -141,10 +140,10 @@ tuxguitar_() { local PACKAGE=${PACKAGE:=tuxguitar} - local PACKAGE_HOME=${PACKAGE_HOME:=/usr/share/${PACKAGE}/} + local PACKAGE_HOME=${PACKAGE_HOME:=/usr/share/java/${PACKAGE}/} # local PACKAGE_MAIN=${PACKAGE_MAIN:=org.herac.tuxguitar.gui.TGMain} local PACKAGE_MAIN=${PACKAGE_MAIN:=org.herac.tuxguitar.app.TGMain} - local PACKAGE_LIB=${PACKAGE_LIB:=/usr/lib/jni} + local PACKAGE_LIB=${PACKAGE_LIB:=/usr/lib64/tuxguitar} # java env JAVA=${JAVA:=java} CLASSPATH=${CLASSPATH} @@ -152,12 +151,78 @@ [ -d "$t" ] && CLASSPATH=${CLASSPATH}:$t t="${PACKAGE_HOME}/${PACKAGE}.jar" [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t - t="/usr/share/java/itext.jar" + t=${PACKAGE_HOME}/${PACKAGE}-alsa.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-ascii.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-awt-graphics.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-browser-ftp.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-community.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-compat.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-converter.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-editor-utils.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-fluidsynth.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gervill.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gm-settings.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gm-utils.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gpx.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gtp.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-gtp-ui.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-image.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-jack.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-jack-ui.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-jsa.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-lib.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-lilypond.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-midi.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-musicxml.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-oss.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-pdf.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-pdf-ui.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-ptb.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-svg.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-tef.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-tray.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-tuner.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-ui-toolkit.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-ui-toolkit-swt.jar + [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t + t=${PACKAGE_HOME}/${PACKAGE}-viewer.jar [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t t=$(swt_guess_) [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t - JAVA_FLAGS=${JAVA_FLAGS:="-Xms128m -Xmx128m"} + JAVA_FLAGS=${JAVA_FLAGS:="-Xms128m -Xmx512m"} JAVA_FLAGS=" ${JAVA_FLAGS} \ -Djava.library.path=${PACKAGE_LIB} \ -D${PACKAGE}.share.path=/usr/share/${PACKAGE} \ @@ -170,6 +235,9 @@ [ ! -z ${DEBUG} ] && ${JAVA} -version [ ! -z ${DEBUG} ] && ${JAVA} ${JAVA_FLAGS} ${PACKAGE_MAIN} --version + SWT_GTK3=0 + export SWT_GTK3 + ${JAVA} ${JAVA_FLAGS} ${PACKAGE_MAIN} $arg "$@" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor