View Single Post
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: