The forum

Amazon Kindle For PC

Author Replies
DirkBo Monday 7 February 2011 at 21:32
DirkBoAnonymous

It's my first pol-script, but it seems to get Kindle going, although it's a bit of an outdated version of Amazons Software.

Wine version: 1.2
Distribution: Ubuntu
Distribution version: 10.10 (Maverick)
Graphics card: ATI, Radeon 4800
Graphics card driver: fglrx
Comments: Everything works great

Code:
#!/bin/bash

["$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TYTUL="Amazon Kindle For PC 4"
PREFIX="Kindle"
WORKINGWINEVERSION="1.2.1"

POL_SetupWindow_Init

POL_SetupWindow_presentation "Amazon Kindle For PC 4" "PlayOnLinux" "http://www.playonmac.com" "DirkBo" "$PREFIX"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate

cd "$REPERTOIRE/ressources/"
if [ ! -e "KindleForPC-installer.exe" ]; then
#POL_SetupWindow_download "PlayOnLinux is downloading $TYTUL..."  "$TYTUL" "http://kindleforpc.amazon.com/31629/KindleForPC-installer.exe"
POL_SetupWindow_download "PlayOnLinux is downloading $TYTUL..."  "$TYTUL" "http://okomestudio.net/biboroku/wp-content/uploads/2010/06/KindleForPC-installer.exe.bz2"
bunzip2 KindleForPC-installer.exe.bz2
fi

#POL_Call POL_Install_gecko

wget http://www.kegel.com/wine/winetricks-alpha
chmod +x winetricks-alpha
sh winetricks-alpha corefonts

#installing Google SketchUp
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing $TYTUL" "$TYTUL"
wine "KindleForPC-installer.exe" /silent
POL_SetupWindow_detect_exit

#creating shortcut for Google SketchUp
#POL_SetupWindow_auto_shortcut "$PREFIX" "KindleForPC.exe" "$TYTUL"
#Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
#POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "*_sketchupicon.0.png"
 
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
POL_SetupWindow_Close

 
POL_SetupWindow_Close
exit
snort Wednesday 9 February 2011 at 18:54
snortAnonymous

Looks great, but when I copy it (cut & paste) as a .pol file and try to run it with POL, I get an error that it is not a valid POL file.
snort Thursday 10 February 2011 at 16:59
snortAnonymous

Sorry about this. I made a mistake. Worked perfectly. Thanks
DirkBo Saturday 12 February 2011 at 20:43
DirkBoAnonymous

Glad to hear it works.
I wish someone could get a more recent Version of kindle for PC to work though :-/
You are here: Index > > Amazon Kindle For PC