diff options
author | Joe <rbo@gmx.us> | 2024-01-29 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-29 20:20:20 +0100 |
commit | 04f5242238eaf225f194114d97fd69bf6a6e9359 (patch) | |
tree | 88c5a7d3017758082f0897bffcad60911f7d582b /src | |
parent | definite choice (diff) | |
download | hardflip-04f5242238eaf225f194114d97fd69bf6a6e9359.tar.gz hardflip-04f5242238eaf225f194114d97fd69bf6a6e9359.tar.bz2 hardflip-04f5242238eaf225f194114d97fd69bf6a6e9359.tar.xz hardflip-04f5242238eaf225f194114d97fd69bf6a6e9359.tar.zst hardflip-04f5242238eaf225f194114d97fd69bf6a6e9359.zip |
mkay
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/c_utils.go b/src/c_utils.go index 5bf4ae6..df49a4f 100644 --- a/src/c_utils.go +++ b/src/c_utils.go @@ -64,7 +64,11 @@ func c_get_data_dir(ui *HardUI) string { var ptr string var home string if home = os.Getenv("HOME"); len(home) == 0 { - c_die("env variable HOME not defined", nil) + if ui == nil { + c_die("env variable HOME not defined", nil) + } + c_error_mode("env variable HOME not defined", nil, ui) + return "" } xdg_home := os.Getenv("XDG_DATA_HOME") |