Open philseeley opened 1 week ago
For flutter-pi builds the "keep awake" option causes errors on startup as it relies on some desktop integration.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = /run/user/0/bus, port = 0 #0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:721) #1 _NativeSocket.connect (dart:io-patch/socket_patch.dart:984) #2 _RawSocket.connect (dart:io-patch/socket_patch.dart:1908) #3 RawSocket.connect (dart:io-patch/socket_patch.dart:21) #4 DBusClient._openSocket (package:dbus/src/dbus_client.dart:780) #5 DBusClient._connect (package:dbus/src/dbus_client.dart:800) #6 DBusClient.callMethod (package:dbus/src/dbus_client.dart:620) #7 DBusRemoteObject.callMethod (package:dbus/src/dbus_remote_object.dart:188) #8 WakelockPlusLinuxPlugin.toggle (package:wakelock_plus/src/wakelock_plus_linux_plugin.dart:41)
So need to add a --disable-keep-awake command line option.
For flutter-pi builds the "keep awake" option causes errors on startup as it relies on some desktop integration.
So need to add a --disable-keep-awake command line option.