#!/bin/bash

#Translation
export TEXTDOMAINDIR="/usr/share/locale"
export TEXTDOMAIN=bigocrpdf

mkdir -p ~/.config/bigocrpdf

rm -f ~/.config/bigocrpdf/selected-file

while (( $# > 0 ))    # or [ $# -gt 0 ]
do
    echo "$1" >> ~/.config/bigocrpdf/selected-file
    shift
done

cd /usr/share/bigbashview/bcc/apps/bigocrpdf/

LANGUAGE=$BIGBASHVIEW_LANG GDK_BACKEND=x11 SDL_VIDEODRIVER=x11 QT_QPA_PLARFORM=xcb bigbashview index.sh.htm -s 1050x600 -i icon-big-ocr-pdf.svg -n $"Torne seu PDF pesquisável"
