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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

websharper-html template is not cross-platform #51

Open
gbtb opened this issue Aug 4, 2023 · 0 comments
Open

websharper-html template is not cross-platform #51

gbtb opened this issue Aug 4, 2023 · 0 comments

Comments

@gbtb
Copy link

gbtb commented Aug 4, 2023

Hello 馃憢

This line obviously would work only on Windows.

<StartProgram>$([System.Environment]::GetEnvironmentVariable(`WinDir`))\explorer.exe</StartProgram>

I'd like to suggest adding separate blocks for Linux and maybe macOS. I can't tell about macOS, but for Linux there is no single file manager that is guaranteed to be present. However, one can use xdg-open instead, which in normal conditions should open a default program user or distro creator chose for handling mime type of filepath. Again, one cannot be 100% sure that every distro have xdg-open installed, but most graphical distros should. In my case, it successfully opens my default file manager Dolphin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant