#!/bin/sh

#run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"This translation is free software, if you have been made to pay for it then please demand a refund!" uint32:0 string:'NAO OK!'

# create temporary file for license text
cat > /tmp/arabic-l10nlicense.txt <<EOF
Arabic Localization for Maemo 5
Copyright (C) 2010 Osama AL Abrash and Iz Alawi

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.

Since this application is free and open source, selling it for personal and/or commercial income will result in punishment by the law.
EOF

retval=0

# confirm the license by the user
maemo-confirm-text /tmp/arabic-l10nlicense.txt 
retval=$?

# remove the temporary license texts
rm -f /tmp/arabic-l10nlicense.txt 

#mandatory to exit with the value maemo-confirm-text exits
exit $retval

