How to stop Terminal from opening instead of Finder functions, such as New Folder, Open File, copy, paste, trying to move a folder to Desktop?
Found a solution to the problem here:


  Enter the following command in the Terminal window in the same way as before (no typing):

xattr -c ~/Desktop

  
  Try the action again. If the same thing happens, relaunch the Finder by selecting Apple menu > Force Quit... > Finder and pressing return or clicking Relaunch.