Page 1 of 1

Not looking for INI in program dir anymore?

Posted: July 11th, 2016, 4:29 pm
by Malaach
Hello,

I just upgraded from 0.7.20 and it seems the prgram is not looking into the program directory anymore for an INI file.

Referring to FAQ "How do I run SABnzbd as a portable/self contained program?" it should do.

When I use the -f switch the correct INI is used and works but when I double-click a NZB file it will call the program with the INI from the user dir which is unwanted behaviour. I even deleted the ini from the user dir but the program only generates a new one if I call a NZB file.

Using 1.0.3, installed with the installer on Win7 x64.

Is there any way around this behaviour?

Malaach

Re: Not looking for INI in program dir anymore?

Posted: July 12th, 2016, 4:49 am
by shypike
Use the batch file portable.cmd to start SABnzbd.
It's in the same folder as SABnzbd.exe

Re: Not looking for INI in program dir anymore?

Posted: July 12th, 2016, 7:16 am
by Malaach
Well, that solution lets the cmd-window stay which isn't desirable. So I altered the file contents as follows:

Code: Select all

start "SABnzb" /MIN %~dp0SABnzbd.exe -f %~dp0 %1 %2 %3 %4 %5 %6 %7 %8 %9
exit
That way the cmd-window disappears after the application start.

Is there no way to restore the old (and still documented!) behaviour? It was perfect before, now it's just some ugly-looking workaround.

Malaach

Re: Not looking for INI in program dir anymore?

Posted: July 12th, 2016, 7:35 am
by shypike
Good tip, I'll change the script.
We removed the old behaviour because it caused issues for other people.

An alternative is to change the shortcut that you use to start SABnzbd.

Re: Not looking for INI in program dir anymore?

Posted: July 12th, 2016, 9:13 am
by safihre
Updated the Wiki.