Changeset 345e741 for launchers


Ignore:
Timestamp:
May 1, 2018 3:43:41 AM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
f6c8e44
Parents:
3488db38
Message:

Change current directory to base directory before starting the router.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/src/main/scala/net/i2p/MacOSXRouterLauncherApp.scala

    r3488db38 r345e741  
    22
    33import net.i2p.router.Router
    4 import net.i2p.launchers.OSXDeployment
     4import net.i2p.launchers.{OSXDefaults, OSXDeployment}
    55import java.io.File
    66
     
    3535object MacOSXRouterLauncherApp extends App {
    3636
    37   val i2pBaseBundleDir = new File(new File("."), "../Resources/i2pbase")
     37  val i2pBaseDir = new File(OSXDefaults.getOSXBaseDirectory)
    3838
    3939  new OSXDeployment()
    4040
     41  // Change directory to base dir
     42  System.setProperty("user.dir", i2pBaseDir.getAbsolutePath)
     43
    4144  Router.main(args)
    4245}
Note: See TracChangeset for help on using the changeset viewer.