Skip to content

Commit 1295691

Browse files
committed
Simplify Linux liblantern path resolution
1 parent bb6a174 commit 1295691

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/lantern/lantern_ffi_service.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class LanternFFIService implements LanternCoreService {
7878
static LanternBindings _gen() {
7979
final String basePath = p.dirname(Platform.resolvedExecutable);
8080
final String fullPath;
81+
appLogger.debug('resolved executable: "${Platform.resolvedExecutable}"');
8182

8283
if (Platform.isWindows) {
8384
final candidates = <String>[
@@ -92,9 +93,7 @@ class LanternFFIService implements LanternCoreService {
9293
if (envPath != null && envPath.isNotEmpty) envPath,
9394
p.join(basePath, "$_libName.so"),
9495
p.join(basePath, "lib", "$_libName.so"),
95-
p.join(basePath, "..", "lib", "lantern", "$_libName.so"),
9696
"/usr/lib/lantern/$_libName.so",
97-
"/usr/share/lantern/$_libName.so",
9897
];
9998
fullPath = _firstExisting(candidates);
10099
} else {

0 commit comments

Comments
 (0)