@alexmurray I edited my snapcraft.yaml to include zenity
in the project because the file_picker flutter library was throwing this error when I try to open a dialog to pick a file:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Couldn't find the executable zenity in the path.
#0 isExecutableOnPath (package:file_picker/src/utils.dart:60)
<asynchronous suspension>
#1 FilePickerLinux._getPathToExecutable (package:file_picker/src/linux/file_picker_linux.dart:119)
<asynchronous suspension>
#2 FilePickerLinux.getDirectoryPath (package:file_picker/src/linux/file_picker_linux.dart:64)
<asynchronous suspension>
#3 FilePickerDefaultImpl.pickPath (package:photo_editor/services/file_picker/file_picker_impl.dart:34)
<asynchronous suspension>
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Couldn't find the executable zenity in the path.
#0 isExecutableOnPath (package:file_picker/src/utils.dart:60)
<asynchronous suspension>
#1 FilePickerLinux._getPathToExecutable (package:file_picker/src/linux/file_picker_linux.dart:119)
<asynchronous suspension>
#2 FilePickerLinux.getDirectoryPath (package:file_picker/src/linux/file_picker_linux.dart:64)
<asynchronous suspension>
#3 FilePickerDefaultImpl.pickPath (package:photo_editor/services/file_picker/file_picker_impl.dart:34)
<asynchronous suspension>
So, according to this issue on github page of file_picker package, I updated my snapcraft.yaml to:
name: batch-image-editor
version: 0.1.0
summary: Batch Image Editor
description: Basic image editor that can generate images using text from text files in batches.
confinement: strict
base: core18
grade: stable
slots:
dbus-batch-image-editor:
interface: dbus
bus: session
name: org.zlimits.batch_image_editor
apps:
batch-image-editor:
command: photo_editor
extensions: [flutter-stable]
plugs:
- network
slots:
- dbus-batch-image-editor
- home
parts:
zenity:
plugin: nil
stage-packages:
- zenity
batch-image-editor:
after:
- zenity
source: .
plugin: flutter
flutter-target: lib/main.dart
Should I open a new issue or should I just tag the reviewers again here on this issue?