wine is very slow to start, but once done it works fine

Questions about Wine on Linux
Locked
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

wine is very slow to start, but once done it works fine

Post by etwineb »

I seldom use Autocad 2000 via Wine, it works fine; but since some time wine is very slow to start.
Yet once it started everything go as fast as expected, I tried seeking aboud and it seems the problem is the font cache. But, as you can see from the script below, for each wineprefix I use a separate cache; so it should happen only the first time.


The script I use to execute wine programs:

Code: Select all

#!/bin/bash
set -e

SCRIPTNAME="`readlink -e "$0"`"
SCRIPTDIR="`dirname "$SCRIPTNAME"`"

export WINEPREFIX="$SCRIPTDIR"/wine
export XDG_CONFIG_HOME="$WINEPREFIX"/xdg_conf
export XDG_DATA_HOME="$WINEPREFIX"/xdg_home
export XDG_CACHE_HOME="$WINEPREFIX"/xdg_cache
export WINEARCH=win32
export LC_ALL=C

xrdb -query | grep -vE 'Xft\.(anti|hint|rgba)' | xrdb
cd "$WINEPREFIX"/drive_c/installationdir
wine executable.exe
Any suggestion to look for the cause?
Locked