Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suitable default open statement for FreeBSD #397

Open
kMutagene opened this issue Jul 9, 2023 · 0 comments
Open

Add suitable default open statement for FreeBSD #397

kMutagene opened this issue Jul 9, 2023 · 0 comments
Labels
Area: Meta Area: MissingAbstraction Plotly.js functionality that has to be implemented help wanted Type: Enhancement
Milestone

Comments

@kMutagene
Copy link
Collaborator

Chart.show uses an OS-specific way of opening files:

///Choose process to open plots with depending on OS. Thanks to @zyzhu for hinting at a solution (https://github.com/plotly/Plotly.NET/issues/31)
let openOsSpecificFile path =
if RuntimeInformation.IsOSPlatform(OSPlatform.Windows) then
let psi =
new System.Diagnostics.ProcessStartInfo(FileName = path, UseShellExecute = true)
System.Diagnostics.Process.Start(psi) |> ignore
elif RuntimeInformation.IsOSPlatform(OSPlatform.Linux) then
System.Diagnostics.Process.Start("xdg-open", path) |> ignore
elif RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then
System.Diagnostics.Process.Start("open", path) |> ignore
else
invalidOp "Not supported OS platform"

Since we do not have a match case for FreeBSD, you currently cannot display charts via Chart.show on that OS.

Since i am not familiar with that OS, I would need input from someone that actually uses it on how to proceed here.

My first google attempt comes up with this, but i have no way of testing it.

See also #384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Meta Area: MissingAbstraction Plotly.js functionality that has to be implemented help wanted Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant