Branch guide-wine8.3 was renamed to guide-wine8.7.

affinity-wine-docs/Tips-n-Fixes.md

4.5 KiB

Tips and Fixes


Table of contents


Kill or shutdown Wine / Affinity

This can be useful if the software freeze or if it keep running in the background

  • Shutdown the Wine environement :
rum ElementalWarrior-[version] $HOME/.wineAffinity wineboot --shutdown

--shutdown can be abbreviated to -s.

  • Kill the Wineserver and it's child applications :
rum ElementalWarrior-[version] $HOME/.wineAffinity wineserver --kill

--kill can be abbreviated to -k.


Desktop shortcuts with rum

  • The .desktop file should be $HOME/.local/share/applications/Publisher 2.desktop and look similar to this :
[Desktop Entry]
Name=Publisher 2
GenericName=Publisher on Wine
Comment=
Exec=rum ElementalWarrior-[ver] /home/[USER]/.wineAffinity wine '/home/[USER]/.wineAffinity/drive_c/Program Files/Affinity/Publisher 2/Publisher.exe'
# Change the rum [version] and the [USER] paths to the right directory

Icon=/home/[USER]/.wineAffinity/drive_c/Program Files/Affinity/AppLogo.targetsize-256.png
# Get any png or svg of the logo to add it here; To use your current icon-pack simply use the icon's name without the file extension, eg. 'affinity-publisher-2'

Categories=Graphics
# To be sorted with other Graphics software in your "start" menu

Keywords=Graphics;2DGraphics;RasterGraphics;VectorGraphics;image;editor;vector;drawing;
# Alternative keywords for app search

MimeType=application/x-affinity
# File type association

NoDisplay=false
StartupNotify=true
Terminal=false
Type=Application
StartupWMClass=publisher.exe
# Change this to 'photo.exe' or 'designer.exe'; Makes sure the open application gets shown under the shortcut instead of creating a new dock-entry; To get an application's WMClass type 'xprop WM_CLASS' into your terminal and click on the window whose class you want to know

This exemple is using Publisher 2 as an exemple, edit it according to the affinity software you installed.


Fixing flickering and other visual glitches

Try both and decide which run the smoothest on your machine.

rum ElementalWarrior-[version] $HOME/.wineAffinity winetricks renderer=gl
rum ElementalWarrior-[version] $HOME/.wineAffinity winetricks renderer=vulkan

Installer not displaying

Some peoples on the Forum had this issue and managed to resolve it by displaying wine windows in a Vitrual Desktop ;
You can enable wine's Virtual Desktop with winecfg, a gui to configure some stuff about your wine prefix.

  • Simply start winecfg through rum in the desired prefix :
rum ElementalWarrior-[version] $HOME/.wineAffinity winecfg
  • Go to the "Graphics" tab and enable "Emulate a virtual desktop", feel free to change the "Desktop size" but it's not mandatory for the install process

Rearanging panels around

Due to Xwayland and Wine's management of child windows, you may face issue with panels not being able to stack and not saving their position when closing Affinity.
A workaround for creating a confortable user interface for your use is to use wine's Virtual Desktop ;
You can enable wine's Virtual Desktop with winecfg, a gui to configure some stuff about your wine prefix.

  • Simply start winecfg through rum in the desired prefix :
rum ElementalWarrior-[version] $HOME/.wineAffinity winecfg
  • Go to the "Graphics" tab and enable "Emulate a virtual desktop", unlike the installer workaround, here you will most likely change the "Desktop size" to your desktop resolution, and maybe subtract the thickness of your taskbar/statusbar if you have one.
  • Save your configs and Open Affinity.
  • Lay the desired panel where you want them and save it Affinity with Window > Studio > Add Preset before closing it cleanly.
  • The virtual Desktop might not work well with floating panels so you might want to open winecfg again to disable it.

more bugreports and fixes are mentioned on the original forum topic.