Skip to content

Commit 47847c5

Browse files
dkocherAliveDevil
authored andcommitted
Set native libraries search path for Linux CLI.
1 parent 89bdbc1 commit 47847c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/src/main/java/ch/cyberduck/cli/LinuxTerminalPreferences.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public LinuxTerminalPreferences() {
4545
protected void setDefaults() {
4646
super.setDefaults();
4747

48+
this.setProperty("library.jansi.path", new ClasspathResourcesFinder().find().getAbsolute());
49+
this.setProperty("jna.boot.library.path", new ClasspathResourcesFinder().find().getAbsolute());
50+
4851
try {
4952
final Process echo = Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", "echo ~"});
5053
this.setDefault("local.user.home", StringUtils.strip(IOUtils.toString(echo.getInputStream(), Charset.defaultCharset())));

0 commit comments

Comments
 (0)