fix: linux link issue

This commit is contained in:
Lucas.Xu 2025-03-05 13:46:34 +08:00
parent 7292a83e92
commit 64d08348e2

View file

@ -38,6 +38,11 @@ Future<bool> afLaunchUri(
);
}
// on Linux, add http scheme to the url if it is not present
if (isURL(url, {'require_protocol': true})) {
uri = Uri.parse('https://$url');
}
// try to launch the uri directly
bool result;
try {