| 1 | = Using Wine with WebKit, Safari, Drosera, etc = |
| 2 | |
| 3 | [http://www.winehq.org/ Wine] is a Windows API implementation for UNIX (including Linux etc). |
| 4 | |
| 5 | The Safari Windows beta [http://appdb.winehq.org/objectManager.php?sClass=version&iId=8248 runs on Wine] with a few glitches. |
| 6 | |
| 7 | == Running Safari with the WebKit Nightlies == |
| 8 | |
| 9 | This script shows how to launch Safari with the WebKit nightlies. First unzip the WebKit nightly download in a directory parallel to Safari. |
| 10 | |
| 11 | There are scripts included in the WebKit nightlies but they don't work too well under Wine's console |
| 12 | |
| 13 | Note that Drosera does not yet work |
| 14 | |
| 15 | {{{ |
| 16 | webkit_dir="`dirname "$0"`" |
| 17 | webkit_dir="`cd "$webkit_dir" ; pwd`" |
| 18 | safari_dir="`cd "$webkit_dir" ; cd ../Safari ; pwd`" |
| 19 | export WINEDLLPATH=$WINEDLLPATH:$webkit_dir:$safari_dir |
| 20 | export WINEPREFIX=~/.wine |
| 21 | |
| 22 | launch_program=safari_custom_webkit |
| 23 | [[ "$1" != "" ]] && launch_program="$1" |
| 24 | |
| 25 | # to launch Safari with the builtin webkit |
| 26 | if [ "$launch_program" == "safari_builtin_webkit" ] |
| 27 | then |
| 28 | cd "$safari_dir" |
| 29 | wine Safari.exe |
| 30 | fi |
| 31 | |
| 32 | # to launch Safari with custom webkit |
| 33 | if [ "$launch_program" == "safari_custom_webkit" ] |
| 34 | then |
| 35 | cd "$webkit_dir" |
| 36 | cp -upv "$safari_dir/Safari.exe" . |
| 37 | cp -upv "$safari_dir"/*.dll . |
| 38 | for resource_dir in "$safari_dir"/*.resources |
| 39 | do |
| 40 | base_resource_dir="`basename "$resource_dir"`" |
| 41 | [[ -d "$base_resource_dir" ]] && rm -fr "$base_resource_dir" |
| 42 | cp -pr "$resource_dir" . |
| 43 | done |
| 44 | export PATH="$webkit_dir":"$safari_dir":"$PATH" |
| 45 | wine Safari.exe /customWebKit |
| 46 | fi |
| 47 | |
| 48 | # to launch Drosera |
| 49 | if [ "$launch_program" == "drosera" ] |
| 50 | then |
| 51 | cd "$webkit_dir" |
| 52 | export PATH="$webkit_dir":"$safari_dir":"$PATH" |
| 53 | wine Drosera.exe |
| 54 | fi |
| 55 | |
| 56 | }}} |