Package: biglybt
Version: 2.2.0.2-2

Upstream version of BiglyBT uses options specified in 
`~/.biglybt/java.vmoptions` (one per line) to apply them to the JVM.

It's useful, since it allows to allocate more memory than the default, or run 
with some nonstandard options. In my case, without allocating more memory than 
the default for JVM is in Debian, I'm running into performance issues.

Example content of `java.vmoptions` file:

```
-Xmx1024m
-Xms256m
-XX:+PerfDisableSharedMem
-XX:+UnlockExperimentalVMOptions
-XX:+UseZGC
```

Additionally, upstream version of BBT provides information about the file and 
what options are specified in it in its options (Tools > Options > Startup & 
Shutdown), and it also has GUI for setting how much memory is JVM allowed to 
use.

Currently I worked around this issue by putting together content of 
`/usr/bin/biglybt` and options from the ignored file in a custom script.

By the way, `$@` in `/usr/bin/biglybt` should be enclosed in double quotes, 
otherwise the wrapper is going to treat spaces in torrent filenames as arg 
separator, preventing it from being able to open torrents with spaces in 
filename.

Feel free to use the patch:


>From ea85fc1ca864c956d1605a539f5f27cd3c4e1df8 Mon Sep 17 00:00:00 2001
From: Elde Etnor <[email protected]>
Date: Mon, 2 Mar 2020 03:41:13 +0000
Subject: [PATCH] Fix missing quotes around `$@` in debian/biglybt.sh

---
 debian/biglybt.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/biglybt.sh b/debian/biglybt.sh
index fb1363f..427c673 100755
--- a/debian/biglybt.sh
+++ b/debian/biglybt.sh
@@ -2,4 +2,4 @@
 
 java -cp 
/usr/share/java/biglybt-core.jar:/usr/share/java/biglybt-ui.jar:/usr/share/java/commons-cli.jar:/usr/share/java/swt4.jar:/usr/share/java/bcprov.jar
 \
      -Dazureus.install.path=/usr/share/biglybt \
-     com.biglybt.ui.Main $@
+     com.biglybt.ui.Main "$@"
-- 
2.24.1

Reply via email to