You are not logged in.

#1 2020-04-17 15:54:10

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

[SOLVED] xdg_user_dirs : I want it to NOT

I understand why my session manager wants to update my directories upon login. But I don't want, have never used, any of the following:

XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_VIDEOS_DIR="$HOME/Videos"

particularly since the natty mouse-over on my panel keeps listing these directories, despite there's nothing in them and they're not used. They're just clutter.

I could, I imagine, simply go and edit the base config at /etc/xdg/user-dirs.defaults is this an intended use? I ask simply because I'm trying to stick to the habit of always making local config changes and never touching installation configs, particularly since a) they may be overwritten on update and b) if I mess something up I'm much more stuck.

I tried commenting out the above in my local user-dirs.dirs but this gets recreated every time. Clearly I don't want to make it immutable.

Last edited by archuser_9999 (2020-04-17 18:15:02)

Offline

#2 2020-04-17 16:12:41

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 98

Re: [SOLVED] xdg_user_dirs : I want it to NOT

systemctl --user mask xdg-user-dirs-update.service

Offline

#3 2020-04-17 16:22:00

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

Thank you!

Not sure where I'd have dug out that little nugget if I hadn't asked here smile

Offline

#4 2020-04-17 16:31:01

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] xdg_user_dirs : I want it to NOT

No need to mask the service — just assign the unwanted directories to $HOME, like this:

XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

Then remove them.

If you don't want the service to do anything at all then create ~/.config/xdg-user-dirs.conf with this line:

enabled=false

Last edited by Head_on_a_Stick (2020-04-17 16:31:23)


Jin, Jîyan, Azadî

Offline

#5 2020-04-17 17:20:21

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

edit: seems that several posts crossed over, and I risked giving the wrong impression.

Have noted both replies above - both very helpful thank you. Am on the case...

Last edited by archuser_9999 (2020-04-17 17:36:41)

Offline

#6 2020-04-17 17:42:17

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

Head_on_a_Stick wrote:

No need to mask the service — just assign the unwanted directories to $HOME, like this:

XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

Then remove them.

worked like a charm (of course wink ) thank you!

next step relates to me DE, so nothing to ask here smile

Offline

#7 2020-04-17 17:43:52

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

I know I really shouldn't need to ask again (but I am) ... how do I mark this as solved?

Offline

#8 2020-04-17 17:57:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] xdg_user_dirs : I want it to NOT


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2020-04-17 18:05:36

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

seriously?? create a new thread, and link it to the old one, and call it "solved"??

as opposed to... running a bulletin board that has a button called "mark as solved" ?!?!?

Yeah, being the Arch forum I suppose that would be far too user friendly hmm

Offline

#10 2020-04-17 18:07:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] xdg_user_dirs : I want it to NOT

I don't know what you read but that's not what the wiki says. Read it again.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2020-04-17 18:11:31

headkase
Member
Registered: 2011-12-06
Posts: 1,989

Re: [SOLVED] xdg_user_dirs : I want it to NOT

archuser_9999 wrote:

seriously?? create a new thread, and link it to the old one, and call it "solved"??

as opposed to... running a bulletin board that has a button called "mark as solved" ?!?!?

Yeah, being the Arch forum I suppose that would be far too user friendly hmm

Edit your first post in your thread and in that you can edit the title.  In the title prepend "[Solved]" without the quotes.  Welcome to the forum man.  smile

Offline

#12 2020-04-17 18:15:23

archuser_9999
Member
Registered: 2019-08-17
Posts: 97

Re: [SOLVED] xdg_user_dirs : I want it to NOT

thank you smile

Offline

#13 2020-04-17 18:16:24

headkase
Member
Registered: 2011-12-06
Posts: 1,989

Re: [SOLVED] xdg_user_dirs : I want it to NOT

archuser_9999 wrote:

thank you smile

You're welcome.  smile

Offline

Board footer

Powered by FluxBB