0

I am new to Ubuntu operating system.

I went through this post : Downloads Directory Not Opening.

I have the same problem but the solution that was suggested there is not working.

Whatever changes I add using xdg-user-dirs-update --set DOWNLOAD $HOME/Downloads get erased when I reboot the computer. How can I fix this ? Is it possible to recover data in Downloads folder?

3
  • What does ls -l ~/Downloads show ?
    – Chintan
    May 16, 2016 at 9:37
  • I created ~/Downloads and now definitely its size is 0. I want my XDG_DOWNLOAD_DIR to point to "$HOME/Downloads"
    – Abhi
    May 16, 2016 at 9:52
  • Did you try updating /etc/xdg/user-dirs.defaults ?
    – Chintan
    May 16, 2016 at 10:02

2 Answers 2

0

To create the Downloads directory, type in Terminal:
mkdir ~/Downloads

Then update user-dirs.defaults by typing in Terminal:
xdg-user-dirs-update --set DOWNLOAD $HOME/Downloads

EDITED
A possible solution is to prevent xdg-user-dirs-update from running (and resetting your configuration at each session start up) by setting enabled=False to your user-dirs.conf:
Edit this file: /etc/xdg/user-dirs.conf
And change enabled=True To enabled=False

2
  • Still cat .config/user-dirs.dirs remains same after reboot XDG_DOWNLOAD_DIR="$HOME/"
    – Abhi
    May 16, 2016 at 9:50
  • Ohhk, this is working. Any idea how I can recover my earlier files present in the location ?
    – Abhi
    May 16, 2016 at 11:31
0

First, reboot.

If you don't have a ~/Downloads directory, just create it like so:

mkdir Downloads

This should remain over a reboot.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .