mlhubber / mlflutter

GNU General Public License v3.0
1 stars 0 forks source link

MLFLUTTER: Check if the `ml` command can be found in PATH #20

Open gjwgit opened 2 weeks ago

gjwgit commented 2 weeks ago

Description

On one test installation when tapping RUN the command immediately returns without producing a result. The problem is that the ml command could not be found, even though it was installed. It often gets installed into ~/.local/bin/ml. Copying the ml file across to /usr/local/bin/ml solves the problem! But the user would not know to do this.

This was discovered when runnig the mlhub app via a .desktop file. On different Ubuntu computers, starting the app from the .dekstop icon, one works with the directory ~/.local/bin on the PATH while another fails because ~/.local.bin is not on the path. The app starts up a /bin/sh and on one computer's startup the .local/bin is on the PATH within the flutter process instance, and on another the PATH is the usual /bin, /sbin, /usr/local/bin, etc., without the .local/bin.

Workaround

To provide some possibility of fixing this: