Difference between revisions of "Template:Run with Java options"

From Bisq Wiki
Jump to navigation Jump to search
(add note about application directory on other operating systems)
m (Change linux path to /opt/bisq/bin/Bisq)
Line 3: Line 3:
 
{{{2}}}:
 
{{{2}}}:
  
  JAVA_TOOL_OPTIONS="{{{1}}}" /opt/Bisq/Bisq
+
  JAVA_TOOL_OPTIONS="{{{1}}}" /opt/bisq/bin/Bisq
  
 
<code>/opt/Bisq/Bisq</code> is the default application directory on Linux. If you run another operating system, you'll need to replace that path with [[Running_from_the_command_line|the one for your OS]].
 
<code>/opt/Bisq/Bisq</code> is the default application directory on Linux. If you run another operating system, you'll need to replace that path with [[Running_from_the_command_line|the one for your OS]].

Revision as of 10:55, 9 May 2021

Command-line fix

{{{2}}}:

JAVA_TOOL_OPTIONS="{{{1}}}" /opt/bisq/bin/Bisq

/opt/Bisq/Bisq is the default application directory on Linux. If you run another operating system, you'll need to replace that path with the one for your OS.

You can adjust the scaling factor as you wish, of course, and add any runtime options for Bisq as well.

GUI fix

To have this setting apply automatically when running Bisq from a menu icon, you'll need to adjust the launcher files to run a script with the fix in it.

1. Create the script, say /opt/Bisq/Bisq-runner.sh.

#!/bin/bash
JAVA_TOOL_OPTIONS="{{{1}}}" /opt/Bisq/Bisq

2. Make it executable.

chmod +x /opt/Bisq/Bisq-runner.sh

3. Update the launcher (/opt/Bisq/Bisq.desktop and/or /usr/share/applications/Bisq.desktop).

...
Exec=/opt/Bisq/Bisq-runner.sh
...