Jump to content
You must now use your email address to sign in [click for more info] ×

Affinity Suite V2 on Linux [ Wine ]


Wanesty

Recommended Posts

Thank you very much @jhob101 I will try it! :)

@Wanesty Hello! Well I don't have thet technical skills like you and others so I am trying to contribute on my way :D Even though it does not mean much as it changes from hardware to hardware, but well, I tried :)

Thank you very much also for the information about the dependencies, that was the web site that I looked at as well, so it means that I was on the right path! :) Thank you again!

Cheers!

Link to comment
Share on other sites

5 hours ago, Wanesty said:

interesting find!
i'll try it on my side and if it doesn't cause regressions(like vcrun2015 used to) i will add it to the guide!

What are the regressions to look out for?

I've not spotted any in my, admittedly limited, testing so far.

Link to comment
Share on other sites

On 8/20/2024 at 3:15 AM, Astonish said:

Hello @Wanesty!Thank you for your reply, I appreciate your time! In these days I tried, on my laptop, your guide on fresh install of:

  • Garuda Hyprland - it works
  • Linux Mint - it works
  • Big Linux - it works
  • Fedora - it doesn't work
  • Nobara - it doesn't work
  • Archcraft - it doesn't work
  • CachyOs - it didn't work
  • EndeavourOS - it doesn't work (but it works on my Desktop)

So as you had mentioned, it is definitely something to do with drivers and distro as well for each computer but I could not find the issue. So now I am running it on Linux Mint.

Please forgive me, I have a question, how do you find the dependencies? I tried to do it on OpenSuse Tumbleweed as well, I tried to find some of the equivalent of the dependencies + Wine documents to see OpenSuse dependencies. But still it wasn't enough and I was messing on something. How do you find dependencies for a given distro?

I posted on Reddit my Linux Mint desktop screenshots and I chose the Affinity Photo as a cover photo! And several people are asking me how I had it run and I am sending people to this forum thread and to your installation guide! :)

 

Screenshot from 2024-08-19 23-11-24.png

 

 

UPDATE:

Just wanted to let everyone know that this did not work on a fresh build of Fedora 40 Gnome NVIDIA but worked perfectly with a fresh build of Nobara 40 Gnome NVIDA on the same machine after switch to vulcan.

 

 

 

 

Link to comment
Share on other sites

2 hours ago, wonderings said:

Any idea on what would cause the dropping of users in a few of those months?

It's any time someone from Serif makes a forum post saying "We currently have no plans for a Linux version of Affinity." 😆

But seriously, let's maybe keep this thread focused on troubleshooting Wine, as there are plenty of other threads already discussing Linux market share.

Link to comment
Share on other sites

Hello! I am glad that you found a distro where the installation worked! May be I should have installed Gnome version instead of the KDE version, but I will never know. I don't have the courage to install it all over again ;D

Link to comment
Share on other sites

On 8/3/2024 at 2:28 AM, Daegalus said:

Actually, if you use `rum` from the guide, you can just extract the zip into

/opt/wines/wine-tkg-affinity

and then you can use rum to deal with it, just like in the guide.  the binary would be under

/opt/wines/wine-tkg-affinity/bin/win

if extracted right.

hey i did ran affinity through this wine and opencl box tick but canvas is not showing

Link to comment
Share on other sites

On 8/22/2024 at 1:49 AM, jhob101 said:

What are the regressions to look out for?

I've not spotted any in my, admittedly limited, testing so far.

some people, myself included had an issue with vcrun2015 where exporting to raster files would be flawless but saving to afphoto / afpub / afdesign files would hang or crash affinity

up to date guide for the Affinity Suite on Linux : https://affinity.liz.pet, source on codeberg and a gitlab mirror

Link to comment
Share on other sites

On 8/20/2024 at 2:35 AM, Wanesty said:

and even intel integrated graphics seems to cause issues, guessing from the amount of people reporting massive visual glitches on their laptop (since most laptops are using intel iGPUs)

so while i don't think you'll get openCL acceleration, it should maybe work fine

the package for intel is

intel-compute-runtime

the problem was related to bottles being isolated and not having an opencl driver

trying with the native meathod

sorry for late reply

Link to comment
Share on other sites

1 hour ago, Wanesty said:

some people, myself included had an issue with vcrun2015 where exporting to raster files would be flawless but saving to afphoto / afpub / afdesign files would hang or crash affinity

Just tested this on mine, and I can save to .afphoto flawlessly.

Hopefully also resolved for others who saw the regression previously.

Link to comment
Share on other sites

worked on porting the guide to web: https://affinity.liz.pet

i still have stuff to do but ultimately it should be more comfortable to navigate, especially if i manage to add vuepress's search plugin
i would also like to change the color scheme to cuterose
for the meantime you can give feedbacks

 

1 hour ago, jhob101 said:

Just tested this on mine, and I can save to .afphoto flawlessly.

i'm assuming you tested with vcrun2015, if that's the case, then yea, one more example of it being very machine specific ahah

up to date guide for the Affinity Suite on Linux : https://affinity.liz.pet, source on codeberg and a gitlab mirror

Link to comment
Share on other sites

33 minutes ago, Wanesty said:

i'm assuming you tested with vcrun2015, if that's the case, then yea, one more example of it being very machine specific ahah

That's with mfc140, I'd not managed to get vcrun2015 to install previously so haven't done any testing with that.

But for me, with mfc140, I can save both .afphoto & export without crashing.  

Link to comment
Share on other sites

23 hours ago, Wanesty said:

worked on porting the guide to web: https://affinity.liz.pet

i still have stuff to do but ultimately it should be more comfortable to navigate, especially if i manage to add vuepress's search plugin
i would also like to change the color scheme to cuterose
for the meantime you can give feedbacks

Looks beautiful and already bookmarked the page! :) Thank you very much for your time and efforts!

Link to comment
Share on other sites

@Wanesty@__avg__

Thank you very much for the new guide and features. I recently found out that you updated everything, it looks much simpler and cleaner. Today I am testing the new branch with all the patches, it looks great!

Thank you very much, soon I will come to ask you for any bug. xD

Link to comment
Share on other sites

I finally gave it a try under Linux Mint, without success at first, but now it works. The installer crashed reproducably at some point during the installation. So I made a second attempt, starting from scratch, and then another with a clean Wine prefix.

First I thought I might have a conflict with the system Wine (which I didn't remember installing, but turns out installing the winetricks package using the system package manager as recommended in the guide pulls the distribution's wine in as a dependency).

Running "./wine --version" in the "wine-install" directory spits out "wine-7.9-15231-ga7c9b19e1a2", whereas I would have expected version 9.13 after running "git switch affinity-photo3-wine9.13-part3". However, it turns out running "wine --version" for the system Wine gives me "wine-6.0.3 (Ubuntu 6.0.3~repack-1)", so the wrong version number can't be the system Wine interfering. I assume that the new branch just misreports its version information. So this doesn't seem to be the cause of the problems.

Then I thought maybe setting Wine to Windows 11 and using a WinMetadata folder from a Windows 10 installation might be the cause of the issues. But alas, setting the prefix to Windows 10 didn't help either.

The first actual error I always encountered during the installation process when following the guide was when running rum to initialize the prefix, which gave me this error

rum affinity-photo3-wine9.13-part3 $HOME/.wineAffinity wineboot --init
Error! Path to wine version doesn't exist!
Wine versions available:

So rum somehow couldn't find Wine in that wine-install folder in the Documents directory. Hence I manually created the /opt/wines/ folder, moved the wine-install folder into it and renamed it to affinity-photo3-wine9.13-part3.

After some digging, I found that this part (and also the one for creating a link to wine named wine64 in the bin directory, which doesn't seem to be necessary) seems to erroneously have disappeared in the new fancy guide compared to the older codeberg guide.

This let me run rum and proceed.

However, in my second attempt, when installing dotnet48 using winetricks, I realized the installation didn't actually succeed. Instead it gave me this warning:

warning: This package (dotnet48) is broken in wine-7.9-15231-ga7c9b19e1a2. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway.

So I ran the command again using --force, assuming that the issue isn't relevant for our purposes, as this seems to have worked fine for others. Alas, when trying to run the installer, I ran into the "mscoree.dll not found, IL-only binary (installer file name) cannot be loaded" problem. So I ran the dotnet installation again and set the wine prefix to Windows 11 again. Multiple times. No change.

I also tried changing the library overrides for mscoree.dll in winecfg, but to no avail.

Without the dotnet48 package, the installer launches and crashes during installation, but with the dotnet48 package installed, it gives the mscoree.dll not found error and doesn't launch.

So I left out the --unattended flag to see what the installer GUI might tell me. Turns out that it complains that the same or a higher version of .NET Framework 4 has already been installed on this computer.

After dismissing this dialog, suddenly an installer popped up that offered me to repair the .NET Framework installation. After going through that, the same "IL-only binary" error remained.

I also tried this tip here and renamed the "/windows/mono" folder. This didn't help either, so I reverted it to its original name.

Then I tried uninstalling .NET Framework using the installer GUI (i.e. without the --unattended flag) and re-installing it using the commandline again.

This let me launch the Affinity installer, offering to repair the Publisher installation (which was incomplete from the test run without dotnet48 installed). The install ran until the end without crashing.

With this, Publisher launched successfully. Overall, it took about 4 hours of tinkering, so the process is nowhere near end user ready yet.

Tip for the Icon: Under Linux Mint, if you open the Publisher.exe file, it will load the PE executable inside the Gnome Archive Manager application. This shows different parts and sections of the PE as files and folders, so you can go and extract the file Publisher.exe/.rsrc/ICON/7 as .wineAffinity/drive_c/Program Files/Affinity/Publisher 2/Publisher.png and then specify the path to that in your .desktop file under Icon=... . The icon seems to get extracted in PNG format, so no need to convert from ICO, just give it a .png extension.

First impressions: Works great with only a few glitches.

  • With the GL renderer canvas disappears when a menu pops open, when typing into a text field in the transform panel, or briefly when changing tools, but activating the Vulkan renderer fixes these issues (HP Z620 workstation with 32 cores, graphics card should be an ATI Radeon RX570 I believe)
  • If a panel or document window is ever detached to floating state, it can never be reattached ever again. The "Reset Studio" command in the Window menu is your friend.
  • Alt+dragging an object to duplicated drags the window as this is captured by the window manager, so I'll probably just have to deactivate that feature in the system.
  • Changing the UI language always reverts to the system default, even after a relaunch of the application, and changing the default CMYK color space also doesn't seem to persist across launches, so likely preferences cannot be saved
  • Fonts are not anti-aliased, but I still need to install the corefonts/allfonts package and there seem to be some registry hacks to enable font smoothing
  • I'll also have to see if color management and screen calibration works reliably with the rest of the system
  • Saving .afpub files does not in fact cause a crash
  • I can even drag files from the Linux file manager into the Publisher window
  • So far, no crashes at all. I experienced one 3-second lag once, that's it.
  • Even typing Japanese with Mozc works (it pops up an input field and then inserts the text). The spacebar no longer temporarily activates the hand tool as long the Mozc IME is active, but that's not a big deal
  • Show in Explorer opens the Wine Windows Explorer, not the native file manager
  • After quitting the application, the .afpub~lock~ file remains
  • The application cannot be launched by double-clicking an .af* file in the file manager. It seems like it tries to launch it, but there are errors.

Big thanks to all who got us this far! Aside from the rather bumpy installation process, this seems very close to being very usable!

Link to comment
Share on other sites

1 hour ago, Daegalus said:

@d-7 fantastic job, my only suggestion is to add an option to choose Flatpak or System package manager. Official Bottles recommends flatpak and tends to treat system installed one as unsupported. 

I haven't tested the bottles-script.sh only with rum, but the script of bottles what does is look if bottles is installed via the distribution package manager or via flatpak.

https://github.com/arksys-os/affinity-on-linux/blob/main/affinty-wine-bottles.sh

if [ -d "$HOME/.local/share/bottles" ]; then
    BOTTLES_RUNNERS_PATH="$HOME/.local/share/bottles/runners"
elif [ -d "$HOME/.var/app/com.usebottles.bottles" ]; then
    BOTTLES_RUNNERS_PATH="$HOME/.var/app/com.usebottles.bottles/data/bottles/runners"
else
    echo "Error: Could not determine Bottles installation path."
    exit 1
fi
Link to comment
Share on other sites

1 hour ago, Peter Werner said:

After some digging, I found that this part (and also the one for creating a link to wine named wine64 in the bin directory, which doesn't seem to be necessary) seems to erroneously have disappeared in the new fancy guide compared to the older codeberg guide.

fixed https://affinity.liz.pet/docs/3-wineprefix_setup.html, i don't know how i missed that, sorry :p
 

1 hour ago, Peter Werner said:
This package (dotnet48) is broken in wine-7.9-15231-ga7c9b19e1a2. Broken since 5.18

@ElementalWarrior would there be a way to fix the fork from returning a wrong version ?
 

1 hour ago, Peter Werner said:

the installer launches and crashes during installation, but with the dotnet48 package installed, it gives the mscoree.dll not found error and doesn't launch.

i need to add a mention in the guide that you can extract the msix installer like a zip and copy stuff in your program files to install it-

that is kinda last resort tho since if the installer doesn't work, you'll likely have issues in the app itself
 

1 hour ago, Peter Werner said:

so the process is nowhere near end user ready yet.

yep, said process varies heavily from machine to machine and some "random" bugs can cause what you had
 

1 hour ago, Peter Werner said:

If a panel or document window is ever detached to floating state, it can never be reattached ever again. The "Reset Studio" command in the Window menu is your friend.

yep this is why i advise to create a studio preset :)

up to date guide for the Affinity Suite on Linux : https://affinity.liz.pet, source on codeberg and a gitlab mirror

Link to comment
Share on other sites

2 hours ago, Daegalus said:

@d-7 oops, that is completely my bad, I skimmed too quickly. All good

I finally only install with flatpak, but after testing on virtual machine the bottle script (affinity-wine-bottles.sh) I couldn't create the bottle correctly via CLI. So if someone knows notify me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.