Winetricks’ default prefix location in ubuntu!

(If you already know all about wine/​prefixes, just skip to the end, that last code­box is what you’re look­ing for.)

I (not so) recently switched to almost exclu­sively using Ubuntu, even for gam­ing.  There are a few games that I play that still require win­dows, but not many.  On the off chance that I feel like play­ing one, I don’t always want to load up the slug­gish, pester-​​prone win­dows.  The solu­tion is of course, WINE (which stands for WINE Is Not an Emu­la­tor).  WINE is a com­pat­i­bil­ity layer that will allow Win­dows exe­cuta­bles to run on the Linux ker­nel.  It also has imple­men­ta­tions of many key Win­dows fea­tures, includ­ing the abil­ity to trans­late Direct3D into OpenGL.  A pre­fix is sort of a lit­tle bot­tle, because WINE isn’t per­fect, it often requires workarounds to get some soft­ware to run, and the workarounds just aren’t com­pat­i­ble with each other some­times, so you need the abil­ity to sep­a­rate them.  Winet­ricks is a piece of soft­ware that per­forms com­mon workarounds with a sim­ple inter­face.  You can cre­ate a pre­fix any­where with the fol­low­ing command

WINEPREFIX='/path/to/folder/' wine 'wineboot'

The folder should not exist yet when you run that com­mand, as it needs to cre­ate the folder itself. I found that when I did this though, winet­ricks didn’t know about the new pre­fix! So I had a prob­lem… Being a par­tic­u­larly advanced user I knew plenty of ways to make that work from the com­mand line, but that’s no fun.    So I decided to poke around a bit, and I found the direc­tory where winet­ricks cre­ates pre­fixes when you use it to install one of its default apps.  If you cre­ate a winepre­fix in this direc­tory, you will find it in your winet­ricks gui!  And that direc­tory is:

Tagged with 

Leave a Reply

Your email address will not be published.

Connect with Facebook