wiki:UsingWine

Version 1 (modified by davidf@sjsoft.com, 17 years ago) ( diff )

added notes on running Safari with custom webkit under wine

Using Wine with WebKit, Safari, Drosera, etc

Wine is a Windows API implementation for UNIX (including Linux etc).

The Safari Windows beta runs on Wine with a few glitches.

Running Safari with the WebKit Nightlies

This script shows how to launch Safari with the WebKit nightlies. First unzip the WebKit nightly download in a directory parallel to Safari.

There are scripts included in the WebKit nightlies but they don't work too well under Wine's console

Note that Drosera does not yet work

webkit_dir="`dirname "$0"`"
webkit_dir="`cd "$webkit_dir" ; pwd`"
safari_dir="`cd "$webkit_dir" ; cd ../Safari ; pwd`"
export WINEDLLPATH=$WINEDLLPATH:$webkit_dir:$safari_dir
export WINEPREFIX=~/.wine

launch_program=safari_custom_webkit
[[ "$1" != "" ]] && launch_program="$1"

# to launch Safari with the builtin webkit
if [ "$launch_program" == "safari_builtin_webkit" ]
  then
    cd "$safari_dir"
    wine Safari.exe
  fi

# to launch Safari with custom webkit
if [ "$launch_program" == "safari_custom_webkit" ]
  then
    cd "$webkit_dir"
    cp -upv "$safari_dir/Safari.exe" .
    cp -upv "$safari_dir"/*.dll .
    for resource_dir in "$safari_dir"/*.resources
      do
        base_resource_dir="`basename "$resource_dir"`"
        [[ -d "$base_resource_dir" ]] && rm -fr "$base_resource_dir"
        cp -pr "$resource_dir" .
      done
    export PATH="$webkit_dir":"$safari_dir":"$PATH"
    wine Safari.exe /customWebKit
  fi

# to launch Drosera
if [ "$launch_program" == "drosera" ]
  then
    cd "$webkit_dir"
    export PATH="$webkit_dir":"$safari_dir":"$PATH"
    wine Drosera.exe
  fi

Note: See TracWiki for help on using the wiki.