I made an app using Flutter UI toolkit. Everything goes fine in debug mode. But after build the snap (which goes fine as well) and installing it I get a “permission denied”
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: FileSystemException: Cannot open file, path = '<path>' (OS Error: Permission denied, errno = 13)
#0 GetStorage._init (package:get_storage/src/storage_impl.dart:47)
<asynchronous suspension>
#1 new GetStorage._internal.<anonymous closure> (package:get_storage/src/storage_impl.dart:28)
<asynchronous suspension>
#2 main (package:app_name/main.dart:15)
<asynchronous suspension>
It seem to be a permission issue where system do not allow the app read/write on the disc. But flutter documentation don’t have anything related to permission for apps targeting linux OS.
How to solve this?