Created
July 31, 2012 12:05
-
-
Save jhthorsen/3216532 to your computer and use it in GitHub Desktop.
Mount Nokia C5-00 and load shotwell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.0 | |
Name=DC50 Nokia import | |
GenericName=Photo Manager for Nokia DC50 | |
Comment=Import your photos from Nokia DC50 | |
Exec=/usr/local/bin/shotwell-mounter %U | |
Icon=shotwell | |
Terminal=false | |
Type=Application | |
MimeType=x-content/image-dcf; | |
Categories=Graphics;Photography;GNOME;GTK; | |
X-GIO-NoFuse=true | |
X-GNOME-Gettext-Domain=shotwell | |
X-GNOME-FullName=DC50 Nokia import | |
X-Ayatana-Appmenu-Show-Stubs=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MEDIA_DIR="/media/FD71-883A"; | |
if [ ! -d $MEDIA_DIR ]; then | |
MEDIA_DIR=$(ls /media); | |
fi | |
if [ -d "$MEDIA_DIR/Images" ]; then | |
if [ ! -d "$MEDIA_DIR/DCIM" ]; then | |
mkdir "$MEDIA_DIR/DCIM"; | |
fi | |
bindfs -n "$MEDIA_DIR/Images" "$MEDIA_DIR/DCIM"; | |
shotwell file://$MEDIA_DIR; | |
#sleep 1; | |
fusermount -u "$MEDIA_DIR/DCIM"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment