Opened 8 years ago

Closed 8 years ago

#943 closed enhancement (invalid)

Explicit is better than implicit.

Reported by: DISABLED Owned by:
Priority: minor Milestone: 0.9.7
Component: wrapper Version: 0.9.5
Keywords: Cc:
Parent Tickets: Sensitive: no


Decided to copy my defaults to root i2p folder and here i am:
30/05/13 01:57:39 CRIT 1/1? er.startup.CreateRouterInfoJob?: Error writing out the new router information C:\program files\i2p\ (Access is denied)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)
at net.i2p.util.SecureFileOutputStream?.<init>(SecureFileOutputStream?.java:41)
at net.i2p.router.startup.CreateRouterInfoJob?.createRouterInfo(CreateRouterInfoJob?.java:107)
at net.i2p.router.startup.RebuildRouterInfoJob?.rebuildRouterInfo(RebuildRouterInfoJob?.java:159)
at net.i2p.router.startup.LoadRouterInfoJob?.runJob(LoadRouterInfoJob?.java:47)
at net.i2p.router.JobQueueRunner?.runCurrentJob(JobQueueRunner?.java:134)
at net.i2p.router.JobQueueRunner?.run(JobQueueRunner?.java:75)
at Source)

Just make a proper root setting or file (like ".i2puseshome"), then if it is there, check if you need to copy defaults by checking for %appdata%/i2p/router.config. Enable it by default.
Problem solved.


Change History (4)

comment:1 Changed 8 years ago by DISABLED

…check if you need to copy defaults by checking for %appdata%/i2p/router.config, if yes then copy and use home; if no then do not copy and use home.

comment:2 Changed 8 years ago by DISABLED

What file does it actually use to understand where to keep it's settings? I still don't get it.

comment:3 Changed 8 years ago by killyourtv

Component: unspecifiedwrapper

I'm sorry, I'm not sure I understand what you're doing.

By default $HOME/.i2p (or %appdata%\i2p) is used. If you want another location you can explicitly set it with the variable "i2p.dir.config" in the wrapper.config file.

So you can set something like\where\you\want\it

If I understand your point, what you want is already possible.

comment:4 Changed 8 years ago by killyourtv

Resolution: invalid
Status: newclosed

Re-reading this, I'm pretty sure I get it. If you want to explicitly set the path to I2P's config there's no reason why you can't/shouldn't. Set it in C:\Program Files\i2p\wrapper.config and be happy.

Note: See TracTickets for help on using tickets.