Github will not open if i click open with github desktop

i wanna download something but i use github desktop i click open with github desktop or something like that and it takes me to the download but i have it. what do i do

If you are logged out of GitHub website then it will redirect to the desktop app download page (check the URL in your browser status bar when you hover over the link). You need to be logged in to GitHub and then it will show a different link like:
href="x-github-client://openRepo/https://xyz

I faced the same issue but it went away when I opened GitHub Desktop as an admin (Windows) and then tried to open code from GitHub. It then prompted to open GitHub Desktop. The same is the issue when trying to sign in using browser from GitHub Desktop. It has to be basically launched/run as admin