Reply
Thread Tools
Posts: 30 | Thanked: 5 times | Joined on May 2012 @ Indja
#101
Originally Posted by thedead1440 View Post
ok just type in terminal:
Code:
nano /home/user/.config/user-dirs.dirs
now edit the file manually to look like:
Code:
# 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/MyDocs"
XDG_DOWNLOAD_DIR="$HOME/MyDocs/Downloads"
XDG_TEMPLATES_DIR="$HOME/MyDocs"
XDG_PUBLICSHARE_DIR="$HOME/MyDocs"
XDG_DOCUMENTS_DIR="$HOME/MyDocs/Documents"
XDG_MUSIC_DIR="$HOME/MyDocs/Music"
XDG_PICTURES_DIR="$HOME/MyDocs/Pictures"
XDG_VIDEOS_DIR="$HOME/MyDocs/Movies"
Do a reboot and see if the changes stick or not...
When I type nano /home/.../user-dirs.dirs, I get a msg "Nano: cannot be found" or something. What am I doing wrong?
Edit which file?
 
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#102
Originally Posted by TheTranceGamer View Post
When I type nano /home/.../user-dirs.dirs, I get a msg "Nano: cannot be found" or something. What am I doing wrong?
Edit which file?
You don't have Nano installed.

Go to Settings --> Security ---> Developer Mode ---> Enable it if you haven't already --> Then Install Utilties under Developer mode

You can also type in terminal:
Code:
apt-get install nano
__________________
N9 - 16 GB Black Reborn

Tutorial - OpenVPN for N9

Last edited by khan.orak; 2013-04-08 at 16:55.
 
Posts: 30 | Thanked: 5 times | Joined on May 2012 @ Indja
#103
Originally Posted by khan.orak View Post
You don't have Nano installed.

Go to Settings --> Security ---> Developer Mode ---> Enable it if you haven't already --> Then Install Utilties under Developer mode
Yup. Didn't have it Installed.
Installed it. Ran the 'nano /home/.../user-dirs.dirs' code. Now? Do I just swipe down and reboot? Or is there an option to save?
 
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#104
Originally Posted by TheTranceGamer View Post
Yup. Didn't have it Installed.
Installed it. Ran the 'nano /home/.../user-dirs.dirs' code. Now? Do I just swipe down and reboot? Or is there an option to save?
When you modify it, don't just swipe down.

instead, tap Ctrl + x, which is for exit. Then it will ask to append changes to the file? Tap 'Y' ... You'll be taken back to terminal. Then you can swipe down and reboot
__________________
N9 - 16 GB Black Reborn

Tutorial - OpenVPN for N9
 
Posts: 30 | Thanked: 5 times | Joined on May 2012 @ Indja
#105
Originally Posted by khan.orak View Post
When you modify it, don't just swipe down.

instead, tap Ctrl + x, which is for exit. Then it will ask to append changes to the file? Tap 'Y' ... You'll be taken back to terminal. Then you can swipe down and reboot
Done. But still I can only view my vids in Gallery. Still can't view the images. Sigh..
 
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#106
Originally Posted by TheTranceGamer View Post
Done. But still I can only view my vids in Gallery. Still can't view the images. Sigh..
Let it reindex the files for a while. They'll appear. I have tested this method and it works.
__________________
N9 - 16 GB Black Reborn

Tutorial - OpenVPN for N9
 
Posts: 30 | Thanked: 5 times | Joined on May 2012 @ Indja
#107
Originally Posted by khan.orak View Post
Let it reindex the files for a while. They'll appear. I have tested this method and it works.
I left it over night. Still can view only the vids in gallery. Can't view DCIM.
 
Posts: 649 | Thanked: 762 times | Joined on Mar 2012 @ Ohio
#108
Originally Posted by TheTranceGamer View Post
I left it over night. Still can view only the vids in gallery. Can't view DCIM.
You have to remove your photos via mass storage, then put them back on your phone. After that, assuming your user-dirs.dirs is correct, they will go where they belong.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#109
Hi to all
Yesterday I noticed that my N950 not show me images that I saved from browser... I tried to take picture from camera and see if it shown in gallery, but it also not show this new image...
I read this post and saw this trick with "user-dirs.dirs", but I wanted to do something different and without reboot and transferring all media from the phone to PC and transferring it back again...
Here I will explain how I fixed it without reboot and transferring all my media, maybe it will be usefull for some users... Don't know if it will work for all..

1. Download this file and extract from ZIP the folder named "Galleryfix" to /home/user/MyDocs

2. Open terminal and write this 3 commands as ROOT (just copy/paste this commands):
a.
Code:
cp -rf /home/user/MyDocs/Galleryfix /opt && cp -f /opt/Galleryfix/gallery-fix80.png /usr/share/icons/hicolor/80x80/apps

b
.
Code:
echo '[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Gallery fix
Exec=sh /opt/Galleryfix/gallery-fix.sh
Icon=/usr/share/icons/hicolor/80x80/apps/gallery-fix80.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable' > /usr/share/applications/gallery-fix.desktop
c.
Code:
sed -i 's/echo *.* |/echo rootme |/g' /opt/Galleryfix/gallery-fix.sh
change rootme to your ROOT password...

3. Now you will see new icon on your desktop named "Gallery fix".

4. Press on this Icon and you will see message:
Gallery fix Hiding media...
Don't close until you will see message "NO ITEMS" !
and immediately it will open Gallery app, wait until you will see message "NO ITEMS".

5. Close Gallery app and you will see message:
Now, do Full refresh to your phone or Reboot and press Fix icon again !
Like it say - just do Full refresh from "N9 QRefresh" button, or do reboot...

6. When phone completely loads, press on the "Gallery fix" icon again and you will see message:
Gallery fix Unhiding media...
Leave opened until it will load all your images !
and immediately it will open Gallery app, wait until it will load all your images.

7. Close Gallery app and you will see message:
Now Gallery should see all your new images !
Like it say - now Gallery app should work again when you download images or take it from Camera. For example if now you will take image and open Gallery app maybe you will not see this image immediately, just wait 2-3 seconds and Gallery will show this image.


NOTE:
You can edit directories in this script: /opt/Galleryfix/gallery-fix.sh Just add your folders that include images to this lines. For example I use this folders for Hide/Unhide:
a. for Hide:
Code:
mv -f /home/user/MyDocs/Pictures /home/user/MyDocs/.Pictures
mv -f /home/user/MyDocs/DCIM /home/user/MyDocs/.DCIM
mv -f /home/user/MyDocs/Movies /home/user/MyDocs/.Movies
mv -f /home/user/MyDocs/Videos /home/user/MyDocs/.Videos
b. for Unhide:
Code:
mv -f /home/user/MyDocs/.Pictures /home/user/MyDocs/Pictures
mv -f /home/user/MyDocs/.DCIM /home/user/MyDocs/DCIM
mv -f /home/user/MyDocs/.Movies /home/user/MyDocs/Movies
mv -f /home/user/MyDocs/.Videos /home/user/MyDocs/Videos

Last edited by Schturman; 2013-04-17 at 22:56.
 

The Following 4 Users Say Thank You to Schturman For This Useful Post:
Posts: 8 | Thanked: 1 time | Joined on Apr 2013 @ USA
#110
i seem to be having a similar issue and have tried some of these solutions, but my messages and contacts are missing as well as my gallery. i was able to locate the gallery images in filebox and back them up to my computer, so all i'm really looking to salvage is my calendar information (if possible, not that important) and most importantly...my contacts! can anyone help?
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:38.