Skip to content

Commit c0a0822

Browse files
committed
Do not set LD_LIBRARY_PATH by default
See #1286
1 parent 08b08d1 commit c0a0822

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/termux/app/BackgroundJob.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ private static boolean shouldAddLdLibraryPath() {
139139
try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(TermuxService.PREFIX_PATH + "/etc/apt/sources.list")))) {
140140
String line;
141141
while ((line = in.readLine()) != null) {
142-
if (!line.startsWith("#") && line.contains("https://dl.bintray.com/termux/termux-packages-24")) {
143-
return false;
142+
if (!line.startsWith("#") && line.contains("//termux.net stable")) {
143+
return true;
144144
}
145145
}
146146
} catch (IOException e) {
147147
Log.e(LOG_TAG, "Error trying to read sources.list", e);
148148
}
149-
return true;
149+
return false;
150150
}
151151

152152
public static int getPid(Process p) {

0 commit comments

Comments
 (0)