Getting Scrivener running under LInux with wine

I think I got it working. Here’s what I did:

Install cabextract (from your distro’s package manager or source)

1.) upgrade wine to 1.3.4 or 1.3.5 (1.3.5 is what i got it working on)
2.) use winetricks to install vcrun2008, vcrun6, and quartz.
3.) obtain a QtSvg4.dll and put it into ~/.wine/drive_c/windows/system32 (or wherever this is found on your distro). These are freely obtained from the QT open source windows SDK.

4.) If your pdf rendering is bad in imported files, use winetricks to install Quicktime 7. (thanks to darkhorse!)

Install Scrivener.

Enjoy. :smiley:

Awesome! Thanks for posting these tricks. :slight_smile:

Used it for a good 40 minutes, and no crashes…

Great to hear, I’ve bookmarked the thread so I can forward anyone to it that asks via e-mail.

(I posted this in the Bug Hunt forum on the Linux thread, but thought I’d add it here in case Linux users check this part of the forum first.)

After a lot of experimenting, I made a discovery I’d like to share with fellow Linux users:

Install the dotnet20 package with winetricks and suddenly you CAN use File–>Import–>Files to add images and documents to your project. Imported .rtf files come complete with formatting. Imported images don’t have to be inserted into a document, and appear correctly in the research folder (they appear on an index card in corkboard mode).

Unfortunately, .pdf files don’t seem to import correctly. Neither do .mp3 files. But we’re making progress here adding access to some more usability to Scrivener under Wine, and that’s exciting. :smiley:

Also, at this point copying from an .rtf in AbiWord and using “paste” in Scrivener doesn’t work…but using “paste and match style” DOES work to paste. It doesn’t do a whole lot of “match style”, but hey. We can always format the text once it’s there. :wink:

I can confirm, (only) after installing (from winetricks) vcrun2008, vcrun6 and quartz, Scrivener installs and runs. (my distro is aptosid xfce 64bit)

Not using QtSvg4.dll, but indeed I got an errormessage:

err:module:import_dll Library QtSvg4.dll (which is needed by L"Z:\\home\\user\\Scrivener\\imageformats\\qsvg4.dll") not found

No need to install winetricks, just run the last script from http://winezeug.googlecode.com/svn/trunk/winetricks with no parameters to manually select what you want to install, or with parameters

./winetricks vcrun2008 vcrun6 quartz

Additionally you will need cabextract.

The File - Import - Files option runs well for .txt, images and .rtf (small size .rtf, I got a crush for large .rtf file) without installing dotnet20.

Yes, thanks, I edited my first post. (A step I forgot.)

I was able to import a large (over 50,000 word document) rtf, although some of the formatting was broken. (For instance any “***” in the text made the text following disappear until another chapter started. When I installed dotnet20 via winetricks, that problem was solved.

trying to register QtSvg4.dll

regsvr32 QtSvg4.dll

gives this error:

err:module:import_dll Library QtGui4.dll (which is needed by L"C:\\windows\\system32\\qtsvg4.dll") not found err:module:import_dll Library QtCore4.dll (which is needed by L"C:\\windows\\system32\\qtsvg4.dll") not found Failed to load DLL qtsvg4.dll

It appears it works by just copying it in /system32 :wink:

Linux users, if you have a crash when you go to File–>Page Setup, check that you have CUPS pdf installed. The cups-pdf package solved the crash for me on Ubuntu 10.04 & Wine 1.3.5. :slight_smile:

Thanks! Installing cups-pdf solved the crash

Edit: nevermind, I’m a complete idiot, who hasn’t had her coffee yet. The Scrivener.exe file uploaded should be replacing the one in the Scrivener folder. I mistook it for a complete installer.

Great! We’re making good progress with getting Scrivener to work nicely on Linux. I think it’s amazing just how well it works, especially considering it’s an early beta. :smiley:

I got it running just fine on Lucid Lynx, but haven’t had the chance to test it and see if it crashes or not. I should add that although I did download and use winetricks, I didn’t need to download or install the additional .dll files. Winetricks did the, er, trick.

Good stuff - if only getting the Mac version to Windows was as easy. sigh

I think you and Lee and all of L&L are doing a fabulous job! :smiley:

Another step Linux users may want to try:

Installing Quicktime (I used the version which installs with winetricks) may clear up pdf file rendering issues. Before I installed Quicktime, imported pdf files in Scrivener looked terrible (pixelated graphics, jagged fonts). After adding Quicktime to Wine, imported pdf files look great in Scrivener. :smiley:

Thank you, garpu! Exciting stuff, getting Scrivener up and running on Wine. :smiley:

I want to extend a HUGE thank you to everyone who has provided tips and tricks in this thread so far. Linux is my only operating system at the moment (and has been, for some time now) and I’ve really been hoping that Scrivener would be Wine-compatible. So far so good! Thank you all!

Reporting in: no problems so far on Kubuntu 10.04 (Lucid Lynx) with Wine 1.3.5, I will keep everyone posted if I run into any more tips or tricks.

I’m so glad to read you’ve got Scrivener working for you on Linux! :smiley: You’re the second KDE user, but the first Kubuntu user I know of using Scrivener. How cool is that?

Right now, we’re in a holding pattern about posting any more information about how to make the most of Scrivener on Linux. Unfortunately, there are questions about the legality of using certain files–we aren’t sure if all the requirements of all the EULAs involved are being met. I was pretty confident, but I’m not a lawyer, so…for the time being, keep a file of tips and tricks in Kate (or hey, eMacs!) and watch the forums to see if we can move forward with our posts here. :slight_smile:

I’m so excited about getting Scrivener working on Linux that I feel compelled to upgrade my Ubuntu distribution from 9.04 to 10.10! (This is so i can get wine 1.3.5)