Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[O/S] Unwanted folder in every new user's home directory

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
qoozh
Posts: 1
Joined: 2024-03-24 22:51

[O/S] Unwanted folder in every new user's home directory

#1 Post by qoozh »

I have Debian 12 with XFCE, and when I add a new user and create home directory for it, a A folder named 模板 will be created (it's a Chinese word for template).
This folder is not in /etc/xdg/user-dirs.defaults:
DESKTOP=Desktop
DOWNLOAD=Downloads
TEMPLATES=Templates
PUBLICSHARE=Public
DOCUMENTS=Documents
MUSIC=Music
PICTURES=Pictures
VIDEOS=Videos
# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos

Is there any solution for this problem?

User avatar
NorthEast
Posts: 351
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: [O/S] Unwanted folder in every new user's home directory

#2 Post by NorthEast »

A file with the relevant contents in post #1 can be written, as root, to /etc/xdg/user-dirs.defaults as a configuration for new users.
The commented text in the current /etc/xdg/user-dirs.defaults is:

Code: Select all

# Default settings for user directories
#
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
which is followed by a listing such the one in post #1. If you want that listing, write the file. You can reboot to ensure it gets read, but that may not be necessary.

User avatar
pbear
Posts: 329
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 1 time
Been thanked: 57 times

Re: [O/S] Unwanted folder in every new user's home directory

#3 Post by pbear »

qoozh wrote: 2024-03-24 23:02 This folder is not in /etc/xdg/user-dirs.defaults:
Of course it is. It's the third line. Notice also the fourth, Public, which you also didn't request and probably have no intention to use.

These are normal folders. I've never found a use for them, but don't delete them either. There's an old saying, "They don't each much bread." Which is to say, the folders take almost no space and aren't hurting anything. And, who knows, maybe some day you'll ask the system to do something and whoever developed the app will assume the folders are available.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 739
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 138 times
Been thanked: 65 times

Re: [O/S] Unwanted folder in every new user's home directory

#4 Post by cds60601 »

I think @NorthEast hit it right on the money (assuming translate actually means translated based on the languages the Op has setup during install).
Supercalifragilisticexpialidocious

User avatar
pbear
Posts: 329
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 1 time
Been thanked: 57 times

Re: [O/S] Unwanted folder in every new user's home directory

#5 Post by pbear »

Perhaps I misunderstand the question. Frankly, I'm mostly keying off the thread title. @qoozh, please elaborate on the problem. What is happening that you think shouldn't. Or not happening that you thing should. :?

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 739
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 138 times
Been thanked: 65 times

Re: [O/S] Unwanted folder in every new user's home directory

#6 Post by cds60601 »

@qoozh - If you don't want to have any (or some) of the directories created, simply comment the ones you don't want to be created, out. For the others that are already created, simply delete them.
Supercalifragilisticexpialidocious

Post Reply