Bash - kde kdialog folder select not working

               Folder_Selected="/home"
               Folder_Selected=$(kdialog --title "Scan Virus - Select Folder" --getexistingdirectory / 2>/dev/null)
               click cancel or close
               if [[ "$?" == '1' ]]; then
                    exit
               fi

               Scanvirus_Command_Line+="'$Folder_Selected'"
               #printf "Scanvirus_Command_Line= %s\n" "$Scanvirus_Command_Line"

This line was working. You navigate to the folder then click ok. Now, it’s acting like I need to select a file on command that’s made to select a folder.

Need to know if this is a kde bug or i’m doing something wrong. Need help…

Thanks.

Click on folder and it won’t exit. Still not working.

Click on folder bin. Select open, nothing happens.