If your desktop icon gone in Ubuntu 22.04 first check Settings > Appearance > Desktop Icon and turn on Show Personal folder. In case the Desktop Icon section is missing from Appearance settings like in below image.
This happens when your gnome shell extension that provides the desktop icons get removed due to any recent package installation/upgrade or it might somehow got corrupted. To fix this you need to install the shell extension. Run the following command in terminal:
sudo apt install gnome-shell-extension-desktop-icons-ng After successful installation restart the GUI with the below command sudo systemctl restart gdm
If still not fixed you can check and verify if the extension is correctly installed and active. For this use the Extensions tool. If don’t have this tool in your system, you can install with following command:
sudo apt install gnome-shell-extension-prefs
Thanks for reading! If you have any doubt regarding this feel free to add in the comment.