[Wine] Running wine as different user

Martin Gregorie martin at gregorie.org
Tue Dec 1 16:53:00 CST 2009


On Tue, 2009-12-01 at 13:10 +0000, Rainer Krug wrote:
>
> PDFXChange says it uses the Login name, and not the name specified in the dialog
> of winecfg.
> 
> So - is it possible to change the login name in wine?
> 
Yes, provided that PDFXChange reads it from the USER environment
variable. Try using a wrapper script:

=================script=======================
#!/bin/bash
export USER="Phileas E User"
export WINEPREFIX=.pdfxchange_prefix
cd "$WINEPREFIX/drive_c/Program Files/PDFXChange
wine PDFXchange
=================script=======================

You may not need to set the WINEPREFIX or change directory before
running wine: they are just examples. Change them to match your
requirements or leave them out if you don't need them and remember to
run "chmod u+x myscript" before trying to run it.


Martin





More information about the wine-users mailing list