How to remove directory tree from Desktop

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
scq
Level 1
Level 1
Posts: 41
Joined: Thu Aug 06, 2015 9:27 pm

How to remove directory tree from Desktop

Post by scq »

Mate Ver 21.2
Intel I7 7th Gen

I am not sure how or why directory tree is displayed on my desktop. I have tried to find a way to not have it displayed , but no go. When I dismount my drive it goes away. When I change to Cinnamon it goes away.
Last edited by LockBot on Tue Apr 23, 2024 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: How to remove directory tree from Desktop

Post by Hoser Rob »

This sounds to me like one of those problems caused by having more than one desktop installed. Ouch.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
scq
Level 1
Level 1
Posts: 41
Joined: Thu Aug 06, 2015 9:27 pm

Re: How to remove directory tree from Desktop

Post by scq »

I do not think so. I have had both installed on my computer for years
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: How to remove directory tree from Desktop

Post by mikeflan »

directory tree is displayed on my desktop
I'm wondering what that would look like.
Can you post a pic of it?

Post a pic or screen shot to the forum:
viewtopic.php?p=2092757#p2092757
viewtopic.php?p=1999476#p1999476
viewtopic.php?p=2206430#p2206430
viewtopic.php?p=2207187#p2207187
scq
Level 1
Level 1
Posts: 41
Joined: Thu Aug 06, 2015 9:27 pm

Re: How to remove directory tree from Desktop

Post by scq »

Screenshot at 2023-10-24 11-56-39.jpg
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: How to remove directory tree from Desktop

Post by mikeflan »

OK. I would think that is just a bunch of folders on the Desktop, but I guess we are thinking that since Documents, Desktop, Downloads, and Videos is included, that the home directory is being shown on the desktop when the directories are not really there.

Please post of the output of this in a terminal:

Code: Select all

ls -la ~/Desktop; echo; cat ~/.config/user-dirs.dirs
scq
Level 1
Level 1
Posts: 41
Joined: Thu Aug 06, 2015 9:27 pm

Re: How to remove directory tree from Desktop

Post by scq »

stephencq@stephen-OMEN:~$ ls -la ~/Desktop; echo; cat ~/.config/user-dirs.dirs
total 24
drwxrwxr-x 2 stephencq stephencq 4096 Apr 6 2023 .
drwx------ 74 stephencq sudo 20480 Oct 24 12:09 ..

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
stephencq@stephen-OMEN:~$
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How to remove directory tree from Desktop

Post by Koentje »

XDG_DESKTOP_DIR="$HOME/"
I think that says it all..


XDG_DOWNLOAD_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"

And these two are also missing subfolders..
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: How to remove directory tree from Desktop

Post by mikeflan »

Edit the lower part of the user-dirs.dirs file to show this:

Code: Select all

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Then restart and see if you like the results.

I don't know how yours got messed up, but maybe you do.
scq
Level 1
Level 1
Posts: 41
Joined: Thu Aug 06, 2015 9:27 pm

Re: How to remove directory tree from Desktop

Post by scq »

Thanks, that fixed my problem. I remember doing a regular update that required that I reboot. Then my problem appeared. So I am not sure how I got it. I have had no reason to change that file.

Thanks again.
Locked

Return to “MATE”