portable.ini not working?

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
manfred538
Posts: 1
Joined: Mon Sep 09, 2019 6:06 am

portable.ini not working?

Post by manfred538 » Mon Sep 09, 2019 6:23 am

Description of problem or question:
The portable.ini.template says "Leave blank to use the system "TMP" and the "AppData" user profile folder."
but doing so results in the error:
System.ArgumentNullException: Value cannot be null.
I want to use the %temp% and %appdata% of the logged on user.
Not using the installer version since I don't want desktop and startmenu icons (distribution system will create those) and I don't want the update check for our users.

Steps to reproduce the problem (If Applicable):
Dump the directory as "c:\Program Files\Handbrake" on an UAC enabled Windows 10 (build 1809)
Use these settings in portable.ini:
******
Storage.dir =
tmp.dir =
update.check = false
******
or
******
#Storage.dir =
#tmp.dir =
update.check = false
******


HandBrake version (e.g., 1.0.0):
1.2.2



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 build 1809 (build 17763.439)



HandBrake Activity Log ***required*** (see How-to get an activity log)
Log is not created since Handbrake can't create the dir.
Full error on screen:
******
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.Directory.CreateDirectory(String path)
at HandBrakeWPF.Utilities.Portable.Initialise() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Utilities\Portable.cs:line 29
at HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\App.xaml.cs:line 100
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
******

Code: Select all

System.ArgumentNullException: Value cannot be null.
Parameter name: path
   at System.IO.Directory.CreateDirectory(String path)
   at HandBrakeWPF.Utilities.Portable.Initialise() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Utilities\Portable.cs:line 29
   at HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\App.xaml.cs:line 100
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

User avatar
s55
HandBrake Team
Posts: 9524
Joined: Sun Dec 24, 2006 1:05 pm

Re: portable.ini not working?

Post by s55 » Sat Sep 14, 2019 4:59 pm

Yup, there's a bug here.

Can you try a nightly build from the download page, it looks like it's an issue that's already been corrected.

Post Reply