Mark Knecht wrote:
On Fri, 2003-01-03 at 20:47, Tony Lambregts wrote:I stumbled across something that is interesting. I was doing some testing and by mistake I ran wcmd as root. (not recomended). Anyway wine complained that it "could not find a decent font".
Tony,Some comparison of what fonts are loaded on each machine would be interesting (if they are the same then looking at the logs with -debugmsg +font in the command line might shed some light on the issue.)
--
Tony Lambregts
Hi. Thanks for the response. I am actually working on this very idea,
but unfortunately it's a huge topic, and with absolutely no idea what
Wine really requires I'm seemingly just throwing darts with a blindfold
on.
One of the first things I've looked at is the 'chkfontpath' command.
Both RH 7.3 machines are identical, and look like this:
[root@Godzilla root]# chkfontpath
Current directories in font path:
1: /usr/X11R6/lib/X11/fonts/misc:unscaled
2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled
3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled
4: /usr/X11R6/lib/X11/fonts/misc
5: /usr/X11R6/lib/X11/fonts/Type1
6: /usr/X11R6/lib/X11/fonts/Speedo
7: /usr/X11R6/lib/X11/fonts/cyrillic
8: /usr/X11R6/lib/X11/fonts/CID
9: /usr/X11R6/lib/X11/fonts/local
10: /usr/X11R6/lib/X11/fonts/latin2/Type1
11: /usr/share/fonts/default/TrueType
12: /usr/share/fonts/default/Type1
13: /usr/share/fonts/ja/TrueType
[root@Godzilla root]#
I have been looking at the directories listed above, trying to
compare things. There are different numbers of files, but I have not yet
found what the differences are. I'm not a Unix guy so writing scripts to
do this is beyond me. I'll get there though.
Beyond that, I find that there are fonts in the .kde directory in my
user account. Does this mean there's a chance that other fonts are
somehow involved? Or that KDE is doing something extra here? I most
certainly don't know.
Anyway, I continue to appreciate your interest and your help.
The short story at this point is that when I replaced the config file with the one from my user account it went through rebuilding the font metrics and ran wcmd. Also when I restored the old config file the error came back. The config file for root was really old so I need to spend some time figuring out what keys/settings are breaking it.
At this point I have it narrowed down to the attached diff hunk. I've got to call it quits for tonight so but I thought I would get this out.
--
Tony Lambregts
--- config.old Mon Apr 1 12:39:22 2002 +++ config Sun Jan 5 21:26:05 2003 @@ -1,73 +1,111 @@ WINE REGISTRY Version 2 ;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config +;; If you think it is necessary to show others your complete config for a +;; bug report, filter out empty lines and comments with +;; grep -v "^;" ~/.wine/config | grep '.' +;; +;; MS-DOS drives configuration +;; +;; Each section has the following format: +;; [Drive X] +;; "Path"="xxx" (Unix path for drive root) +;; "Type"="xxx" (supported types are 'floppy', 'hd', 'cdrom' and 'network') +;; "Label"="xxx" (drive label, at most 11 characters) +;; "Serial"="xxx" (serial number, 8 characters hexadecimal number) +;; "Filesystem"="xxx" (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix') +;; This is the FS Wine is supposed to emulate on a certain +;; directory structure. +;; Recommended: +;; - "win95" for ext2fs, VFAT and FAT32 +;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended) +;; DON'T use "unix" unless you intend to port programs using Winelib ! +;; "Device"="/dev/xx" (only if you want to allow raw device access) +;; +[Drive A] +"Path" = "/mnt/floppy" +"Type" = "floppy" +"Label" = "Floppy" +"Filesystem" = "win95" +"Serial" = "87654321" +"Device" = "/dev/fd0" + [Drive C] -"Path" = "/mnt/c" +"Path" = "/home/tony/c" "Type" = "hd" -"Filesystem" = "vfat" +"Label" = "MS-DOS" +"Filesystem" = "win95" [Drive D] "Path" = "/mnt/cdrom" "Type" = "cdrom" -"Device" = "/dev/cdrom" +"Label" = "CD-Rom" "Filesystem" = "win95" +; make sure that device is correct and has proper permissions ! +"Device" = "/dev/cdrom" [Drive E] "Path" = "/tmp" "Type" = "hd" +"Label" = "Tmp Drive" "Filesystem" = "win95" [Drive F] "Path" = "${HOME}" "Type" = "network" +"Label" = "Home" "Filesystem" = "win95" -[wine] -"windows" = "C:\\windows" -"system" = "C:\\windows\\SYSTEM" -"path" = "C:\\windows\\system;C:\\windows;C:\\windows\\sysbckup;C:\\windows\\command;C:\\windows\\command\\ebd;C:\\windows\\$Win98UpdateUninstall$;C:\\windows\\help;C:\\windows\\system\\shellext;C:\\windows\\$Win98UpdateUninstall$\\uninstal;C:\\windows\\Profiles\\root\\Temporary Internet Files\\6kwfl8ds;C:\\windows\\inf;C:\\windows\\$!$!$!$!.app\\Microsoft\\welcome;C:\\windows\\Profiles\\root\\Desktop;C:\\windows\\Profiles\\root\\Application Data\\Microsoft\\welcome;C:\\windows\\Profiles\\root\\Temporary Internet Files\\t84vit13" -"temp" = "/tmp" +[Drive X] +"Path" = "/usr/local" +"Type" = "network" +"Label" = "localwine" +"Filesystem" = "ntfs" + +[wine] +"Windows" = "c:\\windows" +"System" = "c:\\windows\\system" +"Temp" = "e:\\" +"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\" +"Profile" = "c:\\windows\\Profiles\\Administrator" +"GraphicsDriver" = "x11drv" +;"ShowDirSymlinks" = "1" +;"ShowDotFiles" = "1" +"ShellLinker" = "wineshelllink" + +# <wineconf> + +[Version] +; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31) +;"Windows" = "win98" +; DOS version to imitate +;"DOS" = "6.22" ; Be careful here, wrong DllOverrides settings have the potential ; to pretty much kill your setup. [DllOverrides] +; some dlls you may want to change +"oleaut32" = "builtin, native" +"ole32" = "builtin, native" "commdlg" = "builtin, native" "comdlg32" = "builtin, native" -"ver" = "builtin, native" -"version" = "builtin, native" "shell" = "builtin, native" "shell32" = "builtin, native" "shfolder" = "builtin, native" "shlwapi" = "builtin, native" "shdocvw" = "builtin, native" -"lzexpand" = "builtin, native" -"lz32" = "builtin, native" -"comctl32" = "builtin, native" -"commctrl" = "builtin, native" "advapi32" = "builtin, native" -"crtdll" = "builtin, native" -"mpr" = "builtin, native" -"winspool.drv" = "builtin, native" -"ddraw" = "builtin, native" -"dinput" = "builtin, native" -"dsound" = "builtin, native" -"opengl32" = "builtin, native" "msvcrt" = "native, builtin" -"rpcrt4" = "native, builtin" -"msvideo" = "builtin, native" -"msvfw32" = "builtin, native" -"mcicda.drv" = "builtin, native" -"mciseq.drv" = "builtin, native" -"mciwave.drv" = "builtin, native" "mciavi.drv" = "native, builtin" "mcianim.drv" = "native, builtin" -"msacm.drv" = "builtin, native" -"msacm" = "builtin, native" -"msacm32" = "builtin, native" -"midimap.drv" = "builtin, native" +; you can specify applications too +; this one will apply for all notepad.exe +;"*notepad.exe" = "native, builtin" +; this one will apply only for a particular file +;"C:\\windows\\regedit.exe" = "native, builtin" ; default for all other dlls -"*" = "native, builtin, so" +"*" = "builtin, native" [x11drv] ; Number of colors to allocate from the system palette