old version of wine to run windows scrivener?

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Sat Feb 01, 2020 2:38 am Post

Is anyone running scrivener under the wine version from the ubuntu (18.04) software center?? looks like it's 3.0 (?).

I have run into a couple of issues trying to get the latest version of wine (5.0) installed from WineHQ website, so if the older version works for this, I'm fine with it. I don't plan to be running any other windows programs, certainly not any graphics-heavy games or anything.

User avatar
garpu
Posts: 2030
Joined: Mon Oct 25, 2010 9:38 pm
Platform: Linux

Sat Feb 01, 2020 9:03 pm Post

Nope. I use whatever the latest development version of WINE is, plus the staging patches. You might not be gaming with WINE, but it's a program that's being continuously improved, and Scrivener benefits, as a result. Like with WINE 5.0 the graphics of Scrivener are much improved, as is font handling. Also, later versions of WINE (4.19 and above) with Scrivener exit cleanly, while older ones don't. Finally, Scrivener's licensing server is going to need dotnet 4.6 or so, which absolutely doesn't work with old versions of WINE.
Slackware-current 64-bit, XFCE

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Tue Feb 04, 2020 8:28 pm Post

thanks for the reply.
guess i'll try again to see if I can get Wine 5.0 working then.

Ro
RoyalTyrrell
Posts: 3
Joined: Wed Feb 05, 2020 2:44 pm
Platform: Windows

Wed Feb 05, 2020 8:03 pm Post

Tested beginning of February 2020, on a fresh install of Ubuntu Mate 18.04.3 LTS and Ubuntu Mate 19.10.

1. Install Wine 5.0 Stable according to the procedure from this site http://ubuntuhandbook.org/index.php/2020/01/install-wine-5-0-stable-ubuntu-18-04-19-10/

2. wine --version -> to check the installation

3. sudo apt install winetricks

4. sudo apt install winbind

5. winecfg -> the first launch will fetch and install the latest Gecko and Mono packages from winehq.org

6. winetricks | Select the default wineprefix | Install a Windows DLL or component | speechsdk MS Speech SDK 5.1

7. wine uninstaller - install the 64bits version of Scrivener, then exit

8. wine uninstaller - you should have the following packages installed :

Microsoft Speech SDK 5.1 - Version 5.1.4324.0
Scrivener - Version 2.9.0.36
Wine Gecko (32-bit) - Version 2.47.1
Wine Gecko (64-bit) - Version 2.47.1
Wine Mono Runtime - Version 4.9.4
Wine Mono Windows Support - Version 4.9.4

9. add the Categories info and correct the missing icon with a text editor (gedit/pluma/nano) in the Scrivener.desktop launchers located in

.local/share/applications/wine/Programs/Scrivener

a. Scrivener.desktop
[Desktop Entry]
Name=Scrivener
Exec=env WINEPREFIX="/home/@@@@/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/@@@@/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Scrivener/Scrivener.lnk
Type=Application
StartupNotify=true
Comment=Launch Scrivener
Path=/home/@@@@/.wine/dosdevices/c:/Program Files/Scrivener
Icon=5738_uninstall.0
Categories=Office


b. Uninstall Scrivener.desktop
[Desktop Entry]
Name=Uninstall Scrivener
Exec=env WINEPREFIX="/home/@@@@/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/@@@@/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Scrivener/Uninstall\\ Scrivener.lnk
Type=Application
StartupNotify=true
Comment=Uninstall Scrivener
Path=/home/@@@@/.wine/dosdevices/c:/Program Files/Scrivener
Icon=5738_uninstall.0
StartupWMClass=uninstall.exe
Categories=Settings

@@@@ stands for your username

That's it, folks !

Ro
RoyalTyrrell
Posts: 3
Joined: Wed Feb 05, 2020 2:44 pm
Platform: Windows

Sun Feb 09, 2020 11:28 am Post

Addendum to previous post
The Wine Mono package ist the open-source counterpart of the closed-source .NET Framework. Mono 4.9.4 identifies itself as .NET Framework 4.7.2 but it's still not the real thing and some functionalities may be missing and get you application errors. To correct this, you need to replace the Mono packages with the real Microsoft .NET packages. From the previous post, you need first to update the 18.04 distribution winetricks scripts, then install the .NET package. This is an iterative procedure taken care of by the winetricks scripts, you will have to install several .NET packages, several were written for 32bits version of Windows and will generate warning messages during the installation process, just click them away.

1. sudo apt remove winetricks
2. cd Download
3. wget https://raw.githubusercontent.com/Winet ... winetricks
4. chmod +x winetricks
5. sudo cp winetricks /usr/local/bin
6. winetricks | Select the default prefix | Install a Windows DLL or component | dotnet462 MS .NET 4.6.2

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Mon Feb 10, 2020 2:09 am Post

thanks for the replies! I haven't summoned the will to deal with this yet; but this looks really helpful, so when I do get around to it, hopefully I'll find success. :-)

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Fri Feb 21, 2020 3:10 am Post

so I made a stupid mistake when following the provided outline, I think I figured out how to fix it. The only concern I have now is that I've realized I apparently didn't completely get rid of folders associated with a previous attempt at running wine via "play on linux" - I still have a folder on my harddrive labeled 'playonlinux' and 'playonlinux's virtual drive'.
I have run the command:
"sudo apt-get purge playonlinux"

following removing it via the software center and the output says the package 'playonlinux' is not installed, so not removed. which is good.
Similarly, I removed the old wine3.6 version that the 'playonlinux' was using - removed via the software center, that is. as far as I can tell, I only have Wine5.0 installed - if I search from the command line for installed wine packages the only ones that show up are version 5.0. All good!
But I want to make sure that the "play on linux" virtual drive that's currently sitting there not doing anything won't interfere with the Wine5.0 version I'm installing here. What concerns me is the "playonlinux" 'win' subfolder that seems to actually have stuff in it.
Can I just manually delete the 'playonlinux' folder AND 'playonlinux's virtual drive'? I think I did this when I first tried switching over to installing the latest wine and something went haywire, but it's entirely possible I screwed something else up without realizing it. (it was a new install of the OS, so I just reinstalled rather than try to fix it).

maybe I should split this off into its own topic but it's a fallout of my own inexperience and not directly related to scrivener, so it seems better to keep it here.
Thanks!

Ro
RoyalTyrrell
Posts: 3
Joined: Wed Feb 05, 2020 2:44 pm
Platform: Windows

Fri Feb 21, 2020 10:26 am Post

If you update or replace an existing Wine installation, the first thing to do is to save your work. As always be sure to have some backups available.
You have to distinguish between the wine application, the wine software package and the .wine hidden filesystem. This hidden filesystem is not removed when you uninstall a wine software package, because that's the place were your windows applications (Scrivener for example), user data, and the Gecko, Mono, .NET etc packages are stored.
To avoid any interference with previous wine installations, it is best to delete this hidden .wine filesystem as well. It will be recreated at the first use of the new wine system..
The same applies to PlayOnlinux, if you have deleted the application packages, you can also delete the PlayOnLinux related filesystems.

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Fri Feb 21, 2020 4:28 pm Post

awesome. thanks! that all makes sense. trying to get windows scrivener working is my first foray into wine and dealing with virtual drives.
I backed up my files, deleted both 'play on linux' folders and everything else appears unaffected.
:-D

wh
whoever
Posts: 6
Joined: Tue Jan 28, 2020 8:15 pm
Platform: Linux

Sun Feb 23, 2020 1:48 am Post

Success!
I have scrivener loaded and running under wine, and activated.
Thanks so much for the help!!
:-D