Skip to content
Snippets Groups Projects
Commit 3302c66e authored by tcarver's avatar tcarver
Browse files

set working directory on windows

parent d4f32fc1
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,8 @@ abstract public class Splash extends JFrame
*/
private void registerForMacOSXEvents()
{
if(isWindows())
setWorkingDirectory();
if(isMac())
{
setWorkingDirectory();
......@@ -315,6 +317,13 @@ abstract public class Splash extends JFrame
{
return System.getProperty("mrj.version") != null;
}
private boolean isWindows()
{
String os = System.getProperty("os.name").toLowerCase();
logger4j.info("os.name "+os);
return (os.indexOf("win") >= 0);
}
protected void about()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment