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)