0

Recently, I accidentally dragged my "Desktop" folder into another folder (/home/[name]/Programs/). I have been trying to return the Desktop folder to its proper place, /home/[name]/.

However, when I try to cut & paste the folder into that directory, it reappears in the Programs folder with a duplicate in /home/[name]/. The sidebar indicates that the "real" Desktop folder is the one that reappeared in /home/[name]/Programs/

I have tried the same cut & paste in both the terminal and using root access. (all 4 combinations) The results are always the same. The real Desktop folder disappears for a moment and reappears. Sometimes the Desktop items in the folder don't reappear with the folder, other times they do, but it seems that a copy of these Desktop items are always put in the new, "fake" Desktop folder.

When hand dragging the Desktop folder from a /home/[name]/Programs tab to a /home/[name] tab, as stated in one of the comments, the desktop folder moves completely normally. (I think I tried this a week ago and it behaved differently) There is no reappearing Desktop folder. However, the sidebar Desktop item give the following error when clicked:

Could not find "/home/[name]/Programs/Desktop".
Please check the spelling and try again.

Also, when running a Desktop item in this state:

There was an error launching the application.

When I tried to move the folder, as stated in one of the answers, using:

cp /home/[name]/Programs /home/[name]

the following returned:

cp: -r not specified; omitting directory '/home/[name]/Programs'

Is there a way to move this special folder back to where it belongs?

1
  • Can you show us the commands you ran in the terminal? You can't really "cut and paste" there so that is confusing. Also, since you originally did it graphically, what happens if you just drag the folder from /home/[name]/Programs/ back to /home/[name]/? And PLEASE don't run it as root! Ever! Not for things that belong to your user. Commented Apr 26 at 17:06

1 Answer 1

0

I suggest past your desktop it connect in new directory

then delete your old unwanted desktop

so first of all

cp /home/[name]/programs /home/name

then

sudo rm -r /home/[name]/Programs/
1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. Commented Apr 27 at 6:59

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.