3 # open_warapper.sh - wrapper script for conversations_http_downloader.py
5 # Copyright (C) 2016 Antonio Ospite <ao2@ao2.it>
7 # This program is free software. It comes without any warranty, to
8 # the extent permitted by applicable law. You can redistribute it
9 # and/or modify it under the terms of the Do What The Fuck You Want
10 # To Public License, Version 2, as published by Sam Hocevar. See
11 # http://sam.zoy.org/wtfpl/COPYING for more details.
13 # This script is based on
14 # https://github.com/iNPUTmice/ImageDownloader/blob/master/openbrowser.sh
18 DOWNLOADER="/home/ao2/Proj/conversations_http_downloader/conversations_http_downloader.py"
31 FILENAME=$(basename ${URL%#*})
32 echo "${TEMPDIR}/${FILENAME}"
35 if [ ${URL: -97:1} = "#" ];
37 DESTINATION=$(decrypted_file "$URL")
42 exec xdg-open "$DESTINATION"