Skip to content

Instantly share code, notes, and snippets.

@jhthorsen
Created July 31, 2012 12:05
Show Gist options
  • Save jhthorsen/3216532 to your computer and use it in GitHub Desktop.
Save jhthorsen/3216532 to your computer and use it in GitHub Desktop.
Mount Nokia C5-00 and load shotwell
[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
#!/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