I've built: flutter build linux --release
Flutter app on Ubuntu 22.10.
When app is bundled as AppImage, the call to:
# https://pub.dev/packages/url_launcher
if (await canLaunchUrl(url)) {
launchUrl(url);
}
fails with: cannot open path of the current working directory: Permission denied
(printed out in the console from which AppImage runs).
Surprisingly when app is executed outside of AppImage, whether from Android Studio or from release build binary, everything works fine.
I believe this has something to do with the AppImage / sandbox, but not entirely sure where to start.
My AppImage config is rather simple.
AppRun
#!/bin/sh
cd "$(dirname "$0")"
exec ./app_entrypoint
Appname.desktop
[Desktop Entry]
Version=1.1
Type=Application
Terminal=false
Name=App name
Exec=app_entrypoint %u
Icon=icon
Categories=Utility;
UPDATE: I've tested the AppImage on Ubuntu 22.04 and everything seems to be working fine.