Score:1

How do I get "user locale names folders"

jp flag

I`m writing a script to config a shared zfs partition, independent of which OS distro I decide to boot; To do so I have to store then locale Names of current User who runs the script, which depends of the language I mean "~/Documents" for English or "~/Documentos" for Spanish ... I found difficult automatic this simple issue in my script.

Any suggestion are welcome thanks

PD: the only steep that I make it was, get the actual locale from this file

cat ~/.config/user-dirs.locale

Score:3
uz flag

I think you look for:

xdg-user-dir DOCUMENTS

See man xdg-user-dir.

Miguel Vides avatar
jp flag
Many THANK`s You have right ... .. I have try this commnd "man xdg-user-dirs-gtk-update" without result, I did not know about THAT command. Thanks again it was quick, And I like it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.