#(Solved) Download Folder Randomly Deleted

44 messages · Page 1 of 1 (latest)

white yacht
#

How can I get my downloads folder back and have it stop deleting?
I updated my install, turned it off and unplugged for a move and now look what it says.
All the other folders are here except Downloads

#

This has happened before too I didn't question it though

dire mountain
#

can you show me content of ~/.config/user-dirs.dirs?

white yacht
#

@dire mountain

dire mountain
#

sudo -s changes ~ to /root

#

so do that again without sudo -s

wild kite
#

they're just running the file path so the shell is trying to execute it

#

and i guess it doesn't have x permission

dire mountain
#

oh yeah
didn't see that there's no cat lmao

#

yeah to see content of file, use cat

#
cat ~/.config/user-dirs.dirs

in your user shell, not root shell

#

@white yacht
hello?

wild kite
#

now that i think about it if it was just a problem with xdg variables it wouldn't remove the old directory

#

what distro and what version of it are you running

#

also what desktop environment

dire mountain
#

judging by this
something-something i3, sway or dwm

wild kite
#

oh i missed that yeah it's dwm

white yacht
wild kite
#

close enough

#

it's a fork of dwm

white yacht
#

Using arch

white yacht
#

Downloads not listed?

wild kite
#

oh wait

#

it's set as your home

dire mountain
#

lmao

white yacht
#

Lmao yo

#

So change it?

wild kite
#

but that happens when the previously set directory is nonexistant and user dirs are refreshed

#

so it probably won't fix it

white yacht
#

Alright so how do I make sure this doesn't happen again tho

wild kite
#

i'm not sure

white yacht
#

I got a Linux virus or something?

wild kite
#

there's probably a daemon of some sort deleting it

white yacht
#

Oh

dire mountain
#

xdg-user-dirs-update can generate folders when needed tho
especially when changing user-dirs locale

#

idk how it is on WMs
but that's how it is on GTK DEs with user-dirs-update gtk helper

wild kite
white yacht
#

How can I recreate Downloads folder?

wild kite
#

set the downloads variable to `$HOME/Downloads" and try

mkdir ~/Downloads
xdg-user-dirs-update
white yacht
#

(Solved) Download Folder Randomly Deleted

#

Thank you

wild kite
#

that may not be permanent though