the chiron /b command works on mac and windows but AFAIK it doesn’t on
linux based systems.
On debian and ubuntu systems often there is a package xdg-open installed
which provides the same functionality as start on windows and open on
mac.
So if you check for the existence of xdg-open the experience on linux
can be similar to the one on the other OS’es.
Ruby code:
system “xdg-open #{chiron_url}” if which xdg-open.chomp != “”
Shouldn’t that be a Mono bug then? Chiron just uses the .NET APIs for
starting a process:
ProcessStartInfo startInfo = new
ProcessStartInfo(“http://localhost:2060”);
startInfo.UseShellExecute = true;
Process p = new Process();
p.StartInfo = startInfo;
p.Start();
Are you still using Chiron for SL development? If so, any reason why
you’re still using it? Or are you using it just because it’s a
convenient local web-server?
the chiron /b command works on mac and windows but AFAIK it doesn’t on
linux based systems.
On debian and ubuntu systems often there is a package xdg-open installed
which provides the same functionality as start on windows and open on
mac.
So if you check for the existence of xdg-open the experience on linux
can be similar to the one on the other OS’es.
Ruby code:
system “xdg-open #{chiron_url}” if which xdg-open.chomp != “”
the chiron /b command works on mac and windows but AFAIK it doesn’t on
linux based systems.
On debian and ubuntu systems often there is a package xdg-open installed
which provides the same functionality as start on windows and open on
mac.
So if you check for the existence of xdg-open the experience on linux
can be similar to the one on the other OS’es.
Ruby code:
system “xdg-open #{chiron_url}” if which xdg-open.chomp != “”
Cheers
Ivan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.