package ninja.eivind.hotsreplayuploader.services;

import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.net.URI;

public class OSXService implements PlatformService {
    private Desktop desktop;

    public OSXService() {
       desktop = Desktop.getDesktop();
    }

    @Override
    public File getApplicationHome() {
        final String libraryPath = "/Library/Application Support";
        return new File(USER_HOME + "/" + libraryPath + "/" + APPLICATION_DIRECTORY_NAME);
    }

    @Override
    public File getHotSHome() {
        return null;
    }

    @Override
    public void browse(final URI uri) throws IOException {
        desktop.browse(uri);
    }
}

@@ -187,16 +187,87 @@
 rvice %7B%0A
+    private final String libraryPath = %22/Library/Application Support%22;%0A
     priv
@@ -310,24 +310,25 @@
 Service() %7B%0A
+ 
        deskt
@@ -418,75 +418,8 @@
 ) %7B%0A
-        final String libraryPath = %22/Library/Application Support%22;%0A
     
@@ -578,11 +578,95 @@
 rn n
-ull
+ew File(USER_HOME + %22/%22 + libraryPath + %22/%22 + %22Blizzard/Heroes of the Storm/Accounts/%22)
 ;%0A  

implement getHotSHome for OSXService