Use data dir instead of home dir for dioxus-related data (#4445)
* Use data dir instead of home dir for dioxus-related data * merge dx dir * make windows match the pshell --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
58c41f8561
commit
89834bc1b3
6 files changed
+33
-8
No files matched your search
+7
-1
@@ -84,7 +84,13 @@ else
|
||||
dx_uri=$github_repo/releases/download/$1/dx-$target.zip
|
||||
fi
|
||||
|
||||
dx_install="${DX_INSTALL:-$HOME/.dx}"
|
||||
if [ -n "$DX_INSTALL" ]; then
|
||||
dx_install="$DX_INSTALL"
|
||||
elif [ -n "$XDG_DATA_HOME" ]; then
|
||||
dx_install="$XDG_DATA_HOME/dx"
|
||||
else
|
||||
dx_install="$HOME/.dx"
|
||||
fi
|
||||
bin_dir="$dx_install/bin"
|
||||
exe="$bin_dir/dx"
|
||||
cargo_bin_dir="$HOME/.cargo/bin"
|
||||
|
||||
Reference in new issue
Block a user