Win32Exception when using external editor for dotnet c#

Godot Version

v4.2.1.stable.mono (b09f793)

Question

What is happening here? Why am I getting a Win32Exception on an Ubuntu system?

More info:
I want to use an external editor (neovim) to write c# for Godot.
In order to do so, I set a bash script as external executable which will open the terminal which will then run neovim for me.


The error I get when clicking on the script icon to open the file:

/run/build/godot-tools/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs:112 - System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'home/tycho/Programming/Games/connect_godot.sh' with working directory '/home/tycho/Programming/Games/Clicker'. No such file or directory
     at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
     at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
     at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
     at GodotTools.Utils.OS.RunProcess(String command, IEnumerable`1 arguments) in /run/build/godot-tools/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs:line 241
     at GodotTools.GodotSharpEditor.OpenInExternalEditor(Script script, Int32 line, Int32 col) in /run/build/godot-tools/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs:line 253
     at GodotTools.GodotSharpEditor.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in /run/build/godot-tools/modules/mono/editor/GodotTools/GodotTools/Godot.SourceGenerators/Godot.SourceGenerators.ScriptMethodsGenerator/GodotTools.GodotSharpEditor_ScriptMethods.generated.cs:line 160
     at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr godotObjectGCHandle, godot_string_name* method, godot_variant** args, Int32 argCount, godot_variant_call_error* refCallError, godot_variant* ret) in /run/build/godot-tools/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/CSharpInstanceBridge.cs:line 24

This is unexpected since I am using PopOS (ubuntu 22.04)


Bash script:

#!/bin/dash

# debugging
echo $1

# opens the terminal and calls nvim with the {file} argument from Godot
gnome-terminal -- nvim $1