Issues creating script for Pharaoh + Cleopatra


I am building an install script for Pharaoh + Cleopatra GOG version (yml file to test before I upload - then use lutris -i yml file).
I am running wine 2.0rc5 and Pharaoh will not run under wine unless I use the explorer option, e.g.

wine explorer /desktop=pc,1920x1080 Pharaoh.exe

Without explorer, Pharaoh crahes:

fixme:win:EnumDisplayDevicesW ((null),0,0x33f534,0x00000000), stub!
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16

My question is how do I pass the explorer /desktop=pc,1920x1080 option to wine from Lutris?
It seems that Zeus + Poseidon suffer from the same issue; I could make another script for that once this is settled.



We got you covered! There’s even a video!


I updated, the install script; still get a bug though:

DEBUG 2017-01-21 15:22:02,178 [system]:Executing which wine
DEBUG 2017-01-21 15:22:02,184 [system]:WINEARCH=win32 WINEPREFIX=explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra
DEBUG 2017-01-21 15:22:02,185 [system]:Executing /usr/bin/wineboot
ERROR 2017-01-21 15:22:07,205 [wine]:No user.reg found after prefix creation. Prefix might not be valid
INFO 2017-01-21 15:22:07,206 [wine]:win32 Prefix created in explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra
ERROR 2017-01-21 15:22:07,207 [wineregistry]:Unexisting registry %s
ERROR 2017-01-21 15:22:07,208 [jobs]:Error while completing task <bound method wine.prelaunch of < object at 0x7fab48daf2b0>>: [Errno 2] No such file or directory: ‘explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra/user.reg’
<class ‘FileNotFoundError’> [Errno 2] No such file or directory: ‘explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra/user.reg’
File “/usr/lib/python3.6/site-packages/lutris/util/”, line 29, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3.6/site-packages/lutris/runners/”, line 708, in prelaunch
create_prefix(self.prefix_path, arch=self.wine_arch)
File “/usr/lib/python3.6/site-packages/lutris/runners/”, line 96, in create_prefix
File “/usr/lib/python3.6/site-packages/lutris/util/”, line 16, in setup_defaults
self.override_dll(“winemenubuilder.exe”, “”)
File “/usr/lib/python3.6/site-packages/lutris/util/”, line 49, in override_dll
self.set_registry_key(key, dll, mode)
File “/usr/lib/python3.6/site-packages/lutris/util/”, line 35, in set_registry_key
File “/usr/lib/python3.6/site-packages/lutris/util/”, line 143, in save
with open(path, ‘w’) as registry_file:

It seems to be running the right command

explorer /desktop=pc,1920x1080 /home/jj/Games/pharaoh_cleopatra

which works for me in wine when I install & run without Lutris

Any news about the installer?