sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
616 stars 66 forks source link

$HOME/.config/SourceGit does not get created, thusly, crash log cannot be written #161

Closed mjk-gh closed 1 month ago

mjk-gh commented 1 month ago

Trying sourcegit 8.14 (.deb package) on Devuan "daedalus" (systemd-less Debian clone), Kernel 6.1.0 (64 bit):

$ sourcegit -h
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/exampleuser/.config/SourceGit/crash_2024-06-02_18-36-52.log'.
   at Interop.ThrowExceptionForIoErrno(Interop.ErrorInfo, String, Boolean) + 0x19
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, Interop.Sys.OpenFlags, Int32, Boolean, Boolean&, Func`4) + 0x13f
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, FileMode, FileAccess, FileShare, FileOptions, Int64, UnixFileMode, Int64&, UnixFileMode&, Boolean, Boolean&, Func`4) + 0x11c
   at System.IO.File.OpenHandle(String, FileMode, FileAccess, FileShare, FileOptions, Int64) + 0x96
   at System.IO.File.WriteToFile(String, FileMode, String, Encoding) + 0x81
   at SourceGit.App.Main(String[] args) + 0x2b7
   at sourcegit!<BaseAddress>+0x1016b2c
zsh: IOT instruction  sourcegit -h
$ mkdir -p $HOME/.config/SourceGit
$ sourcegit
$ # Nothing happens, sourcegit has crashed, see extra bug report #162