A guide to running the Cavalry motion graphics software on Linux using Wine.
This guide has been tested exclusively on Wine 11.
Create a new Wine prefix by creating a folder somewhere on your computer, preferably ~/.cavalry. Within that folder, run WINE_PREFIX=~/.cavalry winetricks which should initialize the prefix.
In Winetricks, select "Install a Windows DLL or component", then check dxvk and click okay. After it is installed, click "Install a font" and check the corefonts option. Go through all of the font installs. Once they are complete, click "Change settings" and select the fontsmooth=rgb option. These improvements make Cavalry run much smoother.
Open winecfg with WINEPREFIX=~/.cavalry winecfg
Go to the Libraries tab.
Under "New override for library," type icuuc and click Add. Do the same for icuin. Ensure they are both set to (Native, Builtin).
Run the Cavalry installer .msi file through Winetricks or through the command line.
Create a new .desktop file to define the Cavalry URI protocol. With the text editor of your choice, create a new file at ~/.local/share/applications/cavalry-handler.desktop. The contents should look like the following:
[Desktop Entry]
Name=Cavalry Protocol Handler
Exec=env WINEPREFIX="/home/micahlt/.cavalry" wine "/home/micahlt/.cavalry/drive_c/Program Files/Cavalry/Cavalry.exe" "%u"
Type=Application
Terminal=false
NoDisplay=true
MimeType=x-scheme-handler/cavalry;
Then run:
update-desktop-database ~/.local/share/applications
xdg-settings set default-url-scheme-handler cavalry ~/.local/share/applications/cavalry-handler.desktopYou should be good to run Cavalry, which you should be able to find from your system menu. Canva sign-in should work properly, and you should have GPU acceleration.
@erich-muller THANK YOU SO MUCH! Your solution helped me to get to a working Cavalry! I took a bit of everyone's solutions in this thread, mixed them together and finally, after SIX DAYS of trying to make Cavalry work in Linux, it works!
Notes:
cavalry-handler.desktopand added the Mimetype line directly into theCavalry.desktopfile. I also changed the path to Cavalry in the Exec line to"C:\\\\Program Files\\\\Cavalry\\\\Cavalry.exe" %u.xdg-settings set default-url-scheme-handler cavalry ~/.local/share/applications/wine/Programs/Cavalry.desktopdidn't work for me at first, producing an "application cannot be found" error. However, I shortened it toxdg-settings set default-url-scheme-handler cavalry Cavalry.desktopwhich executed without error. You can also verify that the mimetype was correctly set by examining themimeinfo.cachefile in the same folder as the .desktop file.Cavalry.desktopfile from~/.local/share/applications/wine/Programsto the applications folder, then ranupdate-desktop-database ~/.local/share/applicationsand the xdg-settings command. This is what seemed to finally unlock the door. Previously, the handler was being set as wine-Programs-Cavalry.desktop which seemed a bit sus to me, so I decided to simplify that by moving the file.I should also note that. as I mentioned earlier in this thread, I'm running an atomic Linux distro (Project Bluefin). Running in Bottles didn't work, running in a container didn't work, but overlaying Wine and Winetricks worked (
rpm-ostree install wine winetricksfor anyone who needs that). I know it's not the preferred way to do things, but whatever. I care more about doing stuff than distro ideology. (IMO Wine really, really should be part of the Bluefin images.)And... breathe...