Compare commits
No commits in common. "master" and "1.4-1" have entirely different histories.
2 changed files with 1 additions and 13 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,9 +1,3 @@
|
|||
compress-pdf (1.5-1) unstable; urgency=low
|
||||
|
||||
* Fix suggested output dir to be the same as input file
|
||||
|
||||
-- Benjamin Renard <brenard@zionetrix.net> Mon, 17 Apr 2017 23:33:25 +0200
|
||||
|
||||
compress-pdf (1.4-1) unstable; urgency=low
|
||||
|
||||
* Initial Debian release
|
||||
|
|
|
@ -139,12 +139,6 @@ VERSION="1.1"
|
|||
ZENITY=$(which zenity)
|
||||
|
||||
pdf_file=$(basename "$1")
|
||||
if [ $( echo "$1"|grep -c '^\/' ) -eq 0 ]
|
||||
then
|
||||
default_output_dir=$( pwd )/$( dirname $1 )
|
||||
else
|
||||
default_output_dir=$( dirname $1 )
|
||||
fi
|
||||
|
||||
# Check if Ghostscript is installed
|
||||
GS="/usr/bin/ghostscript"
|
||||
|
@ -195,7 +189,7 @@ case $selected_level in
|
|||
esac
|
||||
|
||||
# Choose output file name
|
||||
suggested_filename="$default_output_dir/compressed-$pdf_file"
|
||||
suggested_filename=compressed-"$pdf_file"
|
||||
output_filename=$($ZENITY --file-selection --save --confirm-overwrite --filename="$suggested_filename" --title="$label_filename")
|
||||
|
||||
if [ "$?" = 1 ] ; then
|
||||
|
|
Loading…
Reference in a new issue