flutter_distributor icon indicating copy to clipboard operation
flutter_distributor copied to clipboard

makers/AppImage: LD_LIBRARY_PATH poorly configured in AppRun

Open servusdei2018 opened this issue 2 years ago • 0 comments

Currently, the AppRun configured in generated AppImages is:

https://github.com/leanflutter/flutter_distributor/blob/0add98c0c10d2e3b8ae3cc3410495528b8fb8cab/packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart#L95-L102

Linux distributions do things pretty differently, but generally libraries are found in usr/lib, usr/lib64, or less commonly, usr/lib32. Therefore, it is very problematic that the default script completely ignores LD_LIBRARY_PATH and overwrites it with a naively assumed directory.

There has been related discussion regarding this in AppImageKit: (https://github.com/AppImage/AppImageKit/issues/126).

servusdei2018 avatar Aug 21 '23 14:08 servusdei2018