Read username

This commit is contained in:
Bob Mottram 2018-04-07 14:15:53 +01:00
parent 0615969c87
commit 6e65880756
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ function reconfigure_koel {
}
function koel_import_from_directory {
read_config_param MY_USERNAME
data=$(mktemp 2>/dev/null)
dialog --title "Choose a directory containing music" --dselect "/home/$MY_USERNAME/" 30 60 2> "$data"
selected_dir=$(cat "$data")