Difference between revisions of "Template:Run with Java options"
Jump to navigation
Jump to search
Plebeian9000 (talk | contribs) (Created page with "== Command-line fix == Adjust scaling with the following prefix. JAVA_TOOL_OPTIONS="{{{1}}}" /opt/Bisq/Bisq You can adjust the scaling factor as you wish, of course, and a...") |
m (Update linux path to /opt/bisq/bin/Bisq) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Command-line fix == | == Command-line fix == | ||
− | + | {{{2}}}: | |
− | JAVA_TOOL_OPTIONS="{{{1}}}" /opt/Bisq/Bisq | + | JAVA_TOOL_OPTIONS="{{{1}}}" /opt/bisq/bin/Bisq |
+ | |||
+ | <code>/opt/bisq/bin/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]]. | ||
You can adjust the scaling factor as you wish, of course, and add any [[Command_line_options|runtime options for Bisq]] as well. | You can adjust the scaling factor as you wish, of course, and add any [[Command_line_options|runtime options for Bisq]] as well. | ||
Line 9: | Line 11: | ||
== GUI fix == | == GUI fix == | ||
− | To have this | + | 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 <code>/opt/ | + | 1. Create the script, say <code>/opt/bisq/Bisq-runner.sh</code>. |
#!/bin/bash | #!/bin/bash | ||
− | JAVA_TOOL_OPTIONS="{{{1}}}" /opt/ | + | JAVA_TOOL_OPTIONS="{{{1}}}" /opt/bisq/bin/Bisq |
2. Make it executable. | 2. Make it executable. | ||
− | chmod +x /opt/ | + | chmod +x /opt/bisq/Bisq-runner.sh |
− | 3. Update the launcher (<code>/opt/ | + | 3. Update the launcher (<code>/opt/bisq/Bisq.desktop</code> and/or <code>/usr/share/applications/Bisq.desktop</code>). |
... | ... | ||
− | Exec=/opt/ | + | Exec=/opt/bisq/Bisq-runner.sh |
... | ... |
Revision as of 10:58, 9 May 2021
Command-line fix
{{{2}}}:
JAVA_TOOL_OPTIONS="{{{1}}}" /opt/bisq/bin/Bisq
/opt/bisq/bin/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/bin/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 ...