hello!! ive been trying out haiku again for the first time since late alpha 5/early beta 1 (so far im very impressed :>). that said, i need some help adding a java application id like to use to the deskbar. i tried linking a shell script launching the application to ~/config/settings/deskbar/menu/
, as well as setting the scripts mimetype to that of a regular be application, but no matter what i do i cant seem to actually get it to launch. the script works perfectly from the command line, however.
It should work, could you share your script ?
For instance, I’ve noticed that for SquirrelSQL the original script was not working well :
exec "$JAVACMD" -cp "$CP" $SQUIRREL_SQL_OPTS -splash:"$SQUIRREL_SQL_HOME/icons/splash.jpg" net.sourceforge.squirrel_sql.client.Main --squirrel-home "$UNIX_STYLE_HOME" $NATIVE_LAF_PROP $SCRIPT_ARGS
But this one was OK in the deskbar menu:
$JAVACMD -cp "$CP" $SQUIRREL_SQL_OPTS -splash:"$SQUIRREL_SQL_HOME/icons/splash.jpg" net.sourceforge.squirrel_sql.client.Main --squirrel-home "$UNIX_STYLE_HOME" $NATIVE_LAF_PROP $SCRIPT_ARGS
sure, its just the default one that comes with jedit:
#!/bin/sh
#
# Runs jEdit - Programmer's Text Editor.
#
# Find a java installation.
if [ -z "${JAVA_HOME}" ]; then
echo 'Warning: $JAVA_HOME environment variable not set! Consider setting it.'
echo ' Attempting to locate java...'
j=`which java 2>/dev/null`
if [ -z "$j" ]; then
echo "Failed to locate the java virtual machine! Bailing..."
exit 1
else
echo "Found a virtual machine at: $j..."
JAVA="$j"
fi
else
JAVA="${JAVA_HOME}/bin/java"
fi
# Launch application.
exec "${JAVA}" -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar "/boot/home/config/non-packaged/data/jEdit/5.7.0/jedit.jar" -reuseview "$@"
i revised the final line to just
${JAVA} -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar "/boot/home/config/non-packaged/data/jEdit/5.7.0/jedit.jar" -reuseview "$@"
and it seems to work! thank you
1 Like