FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    1,575

    Pictures folder not accessible

    Hi Friends,

    I am running Fedora 25 Workstation (32 bit) as the only OS on my HDD, which is fully updated. But today I notice a weird issue. One of my default system folders/directories ie "Pictures" seems to have changed its order in the left hand menu. How can I resolve this issue? Just a few few minutes ago, there was another error when I tried to access this Pictures folder - "Unable to find the requested file. Please check the spelling and try again." I have deliberately painted my personal folders white, please do not mind me doing so, its only a matter of privacy.

    Please help me. Thanks.

    Code:
    [john@localhost ~]$ cat .config/user-dirs.dirs |grep -i xdg
    # This file is written by xdg-user-dirs-update
    # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
    # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/"
    XDG_VIDEOS_DIR="$HOME/Videos"
    [john@localhost ~]$
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1.png 
Views:	26 
Size:	39.8 KB 
ID:	27057   Click image for larger version. 

Name:	2.png 
Views:	30 
Size:	37.4 KB 
ID:	27058   Click image for larger version. 

Name:	3.png 
Views:	24 
Size:	50.5 KB 
ID:	27059  
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  2. #2
    Join Date
    Aug 2005
    Posts
    710

    Re: Pictures folder not accessible

    This is the default user-dirs.dirs on my machine.
    Code:
    $ cat .config/user-dirs.dirs
    # This file is written by xdg-user-dirs-update
    # If you want to change or add directories, just edit the line you're
    # interested in. All local changes will be retained on the next run
    # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
    # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
    # absolute path. No other format is supported.
    # 
    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/Pictures"
    XDG_VIDEOS_DIR="$HOME/Videos"
    Have you not tried reinstating XDG_PICTURES_DIR?

  3. #3
    Join Date
    Sep 2006
    Posts
    1,575

    Re: Pictures folder not accessible

    Quote Originally Posted by kldixon


    Have you not tried reinstating XDG_PICTURES_DIR?
    Yes, this is what I have done as root and now my default user-dirs.dirs looks like below.

    Code:
    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/Pictures"
    XDG_VIDEOS_DIR="$HOME/Videos"
    Have I done the right thing by adding the missing word "Pictures" to the line -XDG_PICTURES_DIR="$HOME/" ? Do I need to do anything else? Any other command as root to make it permanent? Please see the attachments, thanks a lot.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Before.png 
Views:	23 
Size:	65.0 KB 
ID:	27060   Click image for larger version. 

Name:	After.png 
Views:	25 
Size:	89.0 KB 
ID:	27061   Click image for larger version. 

Name:	Back to normal.png 
Views:	29 
Size:	42.3 KB 
ID:	27062  
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  4. #4
    Join Date
    Aug 2005
    Posts
    710

    Re: Pictures folder not accessible

    You did not need to be root to edit that file. Your user already owns it. To check that is the case, do:
    $ ls -l ~/.config/user-dirs.dirs
    and to check that the Pictures directory exists and is owned by your user, do
    $ ls -al ~/Pictures
    The question is, how did that file get corrupted in the first place?
    Last edited by kldixon; 1st May 2017 at 03:05 PM. Reason: correct file extension

  5. #5
    Join Date
    Sep 2006
    Posts
    1,575

    Re: Pictures folder not accessible

    Quote Originally Posted by kldixon
    You did not need to be root to edit that file. Your user already owns it. To check that is the case, do:
    $ ls -l ~/.config/user-dirs.dirs
    and to check that the Pictures directory exists and is owned by your user, do
    $ ls -al ~/Pictures
    The question is, how did that file get corrupted in the first place?
    Thanks a lot.

    Here what I did to check 1 user already owns it and 2 the Pictures directory exists and is owned by your user....

    Code:
    [john@localhost ~]$  ls -l .config/user-dirs.dirs 
    -rw-------. 1 john john 632 May  1 18:47 .config/user-dirs.dirs
    [john@localhost ~]$ 
    [john@localhost ~]$ ls -al ~/Pictures
    total 24
    drwxr-xr-x.  2 john john 20480 May  1 19:04 .
    drwx------. 45 john john  4096 May  2 15:39 ..
    [john@localhost ~]$
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

Similar Threads

  1. [SOLVED]
    Pictures Folder for Screensaver
    By rjames in forum Using Fedora
    Replies: 4
    Last Post: 22nd February 2012, 02:22 PM
  2. Change Gnome Screensaver Pictures Folder
    By teancum144 in forum Using Fedora
    Replies: 0
    Last Post: 5th August 2010, 12:20 AM
  3. Replies: 2
    Last Post: 28th September 2007, 05:37 PM
  4. FC5 Pictures Folder Screensave
    By cdlaforc in forum Using Fedora
    Replies: 1
    Last Post: 3rd June 2006, 01:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •