Hey People,
I'm starting with Git hub, and I was looking into your project and I thought it really cool!
But when I ran it in my ubuntu I figure out that it's setup to windows OS.
We could create an class with the function to recognize what's is the version that the user is using... adding this code part into RealProcessStarter class solved my problem :) What is the better way to implement this feature?
if(System.getProperty("os.name").equalsIgnoreCase("Linux")){
System.out.println("It's linux based :)");
//please make sure that vlc is currently installed into your machine
//or change the code below to your preference program
ProcessBuilder pb = new ProcessBuilder("/bin/sh", "-c", "vlc "+path);
pb.start();
}
else {
System.out.println("It isn't linux based :)");
ProcessBuilder pb = new ProcessBuilder("cmd", "/c \"start " + path + "\"");
pb.start();
}
Hey People,
I'm starting with Git hub, and I was looking into your project and I thought it really cool!
But when I ran it in my ubuntu I figure out that it's setup to windows OS.
We could create an class with the function to recognize what's is the version that the user is using... adding this code part into RealProcessStarter class solved my problem :) What is the better way to implement this feature?