#!/bin/bash

# nokswell ma 2.7.2012 17.55.28 +0300
#

. ${HOME%%/}/.config/compaq-niemi/nokswell
test -z ${SOURCEDIR} || pushd "${SOURCEDIR}" 2>/dev/null
if [[ $? -eq 0 ]]
then
	. ${HOME%%/}/.config/user-dirs.dirs
	DESTINDIR=${XDG_PICTURES_DIR%%/}/Nokialta
	DESTINDIR=${DESTINDIR%%/}/`date +%Y-%m-%d_%H-%M`
	mkdir -p ${DESTINDIR} 2>/dev/null || break
	SOURCEDIR=`pwd`
	qdbus org.gnome.Nautilus /org/gnome/Nautilus org.gnome.Nautilus.FileOperations.CopyFile "file://${SOURCEDIR}/" "" "file://${DESTINDIR}" ""
popd 2>/dev/null || exit 1
fi

shotwell
 
