fix-path-env-rs icon indicating copy to clipboard operation
fix-path-env-rs copied to clipboard

`fix_path_env::fix()?` fails when using nushell as default shell

Open MylesWritesCode opened this issue 2 years ago • 0 comments

Using nushell, I get the following error while using this crate.

  × Missing flag argument.
   ╭─[source:1:1]
 1 │ nu -ilc
   ·    ──┬─
   ·      ╰── flag missing string argument
   ╰────                                     

Running my app by changing the shell environment works as expected (i.e. SHELL=$(which zsh) cargo tauri dev).

I think it might be good to handle the error on line 37 (lib.rs), and use the default shell if that fails. Thoughts?

MylesWritesCode avatar Dec 19 '23 19:12 MylesWritesCode