Skip to content

Commit

Permalink
Do not set LD_LIBRARY_PATH by default
Browse files Browse the repository at this point in the history
See #1286
  • Loading branch information
fornwall committed Oct 20, 2019
1 parent 08b08d1 commit c0a0822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/termux/app/BackgroundJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ private static boolean shouldAddLdLibraryPath() {
try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(TermuxService.PREFIX_PATH + "/etc/apt/sources.list")))) {
String line;
while ((line = in.readLine()) != null) {
if (!line.startsWith("#") && line.contains("https://dl.bintray.com/termux/termux-packages-24")) {
return false;
if (!line.startsWith("#") && line.contains("//termux.net stable")) {
return true;
}
}
} catch (IOException e) {
Log.e(LOG_TAG, "Error trying to read sources.list", e);
}
return true;
return false;
}

public static int getPid(Process p) {
Expand Down

0 comments on commit c0a0822

Please sign in to comment.