Skip to content

Bug #382: Enhance davmail script to allow overrides #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SethRobertson
Copy link

It should be backwards compatible, but now you can pass in environmental variables (seen below) to override various default settings. Even better, if you just want to add java arguments (example: UI scaling) you can set JAVA_USER_OPTS and not have to worry about anything else.

Not fully tested since I don't have all of those environments.

CLASSPATH
EXTRA_CLASSPATH
JAVA
JAVA_CORE_OPTS
JAVA_EXTRA2_OPTS
JAVA_EXTRA_OPTS
JAVA_NET_OPTS_DFL
JAVA_OPTS
JAVA_USER_OPTS
JFX_CLASSPATH
LD_LIBRARY_PATH
SWT_GTK3

It should be backwards compatible, but now you can pass in
environmental variables (seen below) to override various default
settings.  Even better, if you just want to add java arguments
(example: UI scaling) you can set JAVA_USER_OPTS and not have to
worry about anything else.

CLASSPATH
EXTRA_CLASSPATH
JAVA
JAVA_CORE_OPTS
JAVA_EXTRA2_OPTS
JAVA_EXTRA_OPTS
JAVA_NET_OPTS_DFL
JAVA_OPTS
JAVA_USER_OPTS
JFX_CLASSPATH
LD_LIBRARY_PATH
SWT_GTK3
@SethRobertson SethRobertson changed the title Bug 382: Enhance davmail script to allow overrides Bug #382: Enhance davmail script to allow overrides Jan 14, 2025
@esabol
Copy link

esabol commented Jan 15, 2025

This is a good idea, @SethRobertson ! May I suggest running the script through shellcheck (see https://www.shellcheck.net/)? It's an excellent linter for shell scripts. For example, it suggests using

: "${JAVA_CORE_OPTS:=-Xmx512M -Dsun.net.inetaddr.ttl=60}"

instead of

: ${JAVA_CORE_OPTS:="-Xmx512M -Dsun.net.inetaddr.ttl=60"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants