Skip to content

Unix-like platforms (Linux, macOS): System.Diagnostics.ProcessStartInfo: Clarify the helper-utility based behavior of UseShellExecute = true  #9534

Open
@mklement0

Description

@mklement0

As of this writing, https://learn.microsoft.com/en-US/dotnet/api/system.diagnostics.processstartinfo.useshellexecute is missing the following information:

  • On Unix-like platforms, setting UseShellExecute to true requires external helper utilities to function:

    • On Linux: any one of the following three utilities must be locatable via the PATH environment variable: xdg-open, gnome-open or kfmclient

      • A given Linux distro may or may not come with any of these.
    • On macOS, the built-in open utility is called via its full path, /usr/bin/open

Generally, setting UseShellExecute to true is a GUI shell operation, and therefore makes no sense on terminal-only/headless systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.DiagnosticsuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions