sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
429 stars 43 forks source link

Pressing the 'q' key does not terminate the application on the remote device #157

Closed makotosato-at closed 1 year ago

makotosato-at commented 1 year ago

Hello

I am trying the following commands on host pc(x86):

$ flutter-elinux run -d target_device_arm64
(snip)

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on eLinux is available at:
http://127.0.0.1:37541/kkd7NI14PDo=/
The Flutter DevTools debugger and profiler on eLinux is available at:
http://127.0.0.1:9100?uri=http://127.0.0.1:37541/kkd7NI14PDo=/

The application starts correctly on the remote target device(arm64). But, pressing the q key does not terminate the application.

How do I terminate an application on a remote target device?

HidenoriMatsubayashi commented 1 year ago

Although this is the known issue, there is currently no way to terminate an app via flutter-elinux remotely.

makotosato-at commented 1 year ago

Thank you for your reply. Well noted.

HidenoriMatsubayashi commented 1 year ago

To address this issue, I made a change that adds stopApp command to custom_devices.json. Thanks. https://github.com/sony/flutter-elinux/pull/202

HidenoriMatsubayashi commented 1 year ago

Updated https://github.com/sony/flutter-elinux/wiki/Remote-target-devices#create-flutter_custom_devicesjson.