домашний каталог на рабочем столе [закрыто]

Помогите Я новичок в компьютерах и думаю, что очень сильно напортачил.

Я пытался упорядочить свои файлы, поместив их в разные папки, чтобы я мог лучше всего видеть. Когда я попытался переместить рабочий стол, я переместил его не в ту папку, поэтому я попытался переместить его.

Я не мог, и быстро все пошло не так, что при попытке доступа к любому приложению на моем рабочем столе оно продолжало выдавать мне сообщения об ошибках.

Я попробовал alt print screen b перезагрузить компьютер, и теперь все мои папки находятся на моем рабочем столе, и я не знаю, как это сделать.

Помогите, пожалуйста, мои компьютерные знания примерно 0.

Обновление: я выяснил, что каким-то образом удалил свой рабочий стол, теперь мой домашний и рабочий стол такие же, если я изменю один из них, он автоматически изменит другой, я сбросил свои настройки. Настройки Ubuntu budgie, но они, похоже, тоже не сильно изменились.

0
задан 20 June 2020 в 19:48

1 ответ

Are you working from the terminal or from the graphical interface? It may be easier to get a grasp on the current situation and what needs done if you operate from the terminal, even if it is foreign. You should be able to open a terminal window by simply right clicking on your desktop and selecting it from the menu. Once you are there, you can confirm your current directory (folder) by typing pwd and hitting enter. This should show the path to your home directory, something like /home/username/.

From there, type an ls command to list the contents of your home directory. If there is no Desktop folder (note the capital D, as case matters in Linux), you can create one with mkdir Desktop. After doing so, you will want to confirm that the machine is configured to use this folder as your desktop directory. To do this, you will need to open and possibly edit the user-dirs.dirs file.

Before editing config files, it is normally prudent to create a backup. To do so, again from your home directory, you can execute cp ./config/user-dirs.dirs ./config/user-dirs.dirs.old. This will create a copy of the file with .old at the end, and in the event that this file is messed up, you can put the old version in place with the inverse of that command.

Then, to edit the file, confirm you are still in your home directory with the pwd command. Then, type vi .config/user-dirs.dirs. This will open the text editor vim and within it the config file user-dirs.dirs. You want to confirm that this line exists:

XDG_DESKTOP_DIR="$HOME/Desktop"

If it does, then you are all set and can exit vim by typing :q and hitting enter. If it is set to something else, to edit in vim, you will need to first hit a (which will start the insert edit mode) and change the line to match above. After the change is in place, press Esc to exit edit mode and type :x then press Enter to save the change. You will need to log out and back in for the change to take affect.

1
ответ дан 30 July 2020 в 22:23

Другие вопросы по тегам:

Похожие вопросы: