You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux: System.Diagnostics.ProcessStartInfo: With UseShellExecute = true, a misleading exception is thrown when no helper utility (such as xdg-open) is present. #96565
On Linux distros, opening a document or folder path via UseShellExecute = true relies on external helper utilities; specifically, the following ones are looked for, via the Path environment variable, in order, with the first one getting used: xdg-open, gnome-open, kfmclient
In the absence of these helper utilities, an exception is thrown, which makes sense,
but the exception is misleading, as it reports the .FileName property value as nonexistent.
That is, the nonexistence of a helper utility is mistakenly reported as the the .FileName property value's nonexistence (even if the latter actually exists).
Reproduction Steps
On a Linux distro with none of the helper utilities present (if a helper utility is present, the call should open the current directory GUI shell's file manager):
Activity
Neo-vortex commentedon May 20, 2026
@jozkee
I made a simple check by validating if the returned util pass in not null
Throw Win32Exception(ERROR_NO_ASSOCIATION) when Unix has no shell ope…