[BETA TESTERS WANTED] Scrivenix — Automated Flatpak Installer for Scrivener 3 on Linux

Installed, activated and launched on Linux Mint Debian Edition 7 - Cinnamon 64 bit.

2 Likes

If you want to wipe the slate clean and start over:

flatpak uninstall com.local.Scrivenix -y

That uninstalls it.

Then this will wipe out the build directory and installation directory and basically everything putting you back at square one. You would start back over in the instructions at step 3. You would NOT need to reinstall flatpak-builder or any of the runtimes.

  rm -rf ~/.var/app/com.local.Scrivenix
  rm -rf build-dir .flatpak-builder repo

It’s so weird. I’m guessing there was a silent crash in the .NET installation which comes immediately prior to the Wine configuration step. Wine will hold off until it get’s the all clear that .Net has finished successfully. I’m 90% confident .NET is the culprit.

1 Like

That’s awesome! Thanks for the information. Let me know if you hit any snags using the software.

Uninstalled on Mint Cinnamon and re-ran from Step 3. Still getting the wine not found when I run the terminal command for it, but I’m not sure what else I can do there. I’ve tried running it in the directory where scrivenix lives with no change. However, Scrivener seems to be running. I complied an in-process project as a pdf and that seemed to come out just fine. Fingers crossed it all works.

Wanted to mention that .Net seemed to install twice. This might be entirely normal, but it seemed to install and then install a second time - the second time brought up the meaningless warning.

Only other odd thing was that the desktop link to open Scrivener is there and is clearly meant to be a link, but it does nothing but spin when clicked. Not sure if that’s at all related to this or if it’s just part of scrivener on Linux.

I hope this information is helpful!

Scrivener is running and working. Were you also able to activate the license? If so that means .NET installed despite the obnoxious hang up.

Yes that’s exactly as expected. I think I’m going to record a successful install and include a link of top, just so folks can see exactly how it ought to go if things are working correctly.

Now to be super clear, your desktop icon is it the actual official Scrivener icon or is it my icon, the green S on a black background with a gold circle around the outer edge? If it is the official one then that probably isn’t going to work and was created by Scrivener itself. Try clicking the Scrivenix icon in your launcher and see if that one works.

If it is my icon and it isn’t working then I think this is probably an artifact of the install not running as intended either time. You can create a manual desktop shortcut that executes the flatpak run com.local.Scrivenix command. You can point it at the Icon I included or the native scrivener icon if you want a more authentic look.

I was able to reproduce the hang you experienced today on Fedora. I opened the system monitor and I watched wine-server, and several other processes with my icon beside them using CPU and making small disk writes. But after 45 minutes I knew it was stuck in a loop. I right clicked the wineserver process and killed it. Within 30 seconds the script moved on to the next step and finished the install successfully. My script currently has a flag for the next step to wait until it get’s the all clear that .Net is finished and sometimes it isn’t getting that all clear so it waits indefinitely. I’m looking at ways to revise the script and address or bypass the problem. My best idea at the moment is to have a timer and if it hasn’t finished its business after X amount of minutes the script can kill wine-server and move on to the next step. That comes with some risk of terminating the process too early on really old/slow hardware, or of adding unnecessary wait time for faster machines. I may ask if you’ll try again with a fresh install with the new script since you are getting the hang up consistently and I have only been able to reproduce it once. Makes it hard for me to know if I’ve fixed it if it isn’t consistently breaking for me.

2 Likes

I have updated the .sh file in a way that resolved my eternal hangup on the .NET installation and uploaded it to the GitHub repository. Hopefully that eliminates that issue.

1 Like

In between laying the flooring and installing frames on my new home, I’ve had a quick play with Ubuntu.

In Step 2, it seems to be installing, though not asking user, until

flatpak install --user flathub org.winehq.Wine//stable-23.08

Response - Looking for matches…
error: Nothing matches org.winehq.Wine in remote flathub

1 Like

Sounds like you have lot’s of spare time…

Thanks for the information. Ubuntu is a big distro with a lot of others based upon it. I’ll definitely dig into this. I based off the Scrivener script and my prior Bottles tutorial and they called for those 23.08 version runtimes which are end of life. I’m going to experiment with running the most recent versions instead and see what happens. Thanks again for finding this hang-up. I’ll see what I can figure out.

I get the same error in Debian which suggests an issue my end.

Maybe not. I’ve updated everything to the 24.08 runtime which are not end of life.
When/IF you have time and inclination:

  1. Not sure you got far enough to even install it, but run the uninstall command just in case.
flatpak uninstall com.local.Scrivenix -y
  1. Get rid of the install directory and build directory. Again, you may not have even gotten this far in if the runtimes would not install. Run them anyway to make sure we are getting a clean slate.

      rm -rf ~/.var/app/com.local.Scrivenix
      rm -rf build-dir .flatpak-builder repo
    
  2. Delete ALL of the installation files you had previously downloaded from my GitHub

  3. Visit GitHub - adgalloway/Scrivenix: A WINE based application for running Scrivener 3 seamlessly on Linux · GitHub and download the updated files.

  4. Open the new install.txt and see if you can proceed through the instructions and let me know if you run into any issues. You’ll be keying in the same terminal commands as before but this time for the 24.08 variants of those runtimes rather than the older 23.08.

What I think I’ve fixed this go:

  1. Scrivenix shortcut should actually launch the app now. (may still require a restart on Cinnamon desktop) Some users were having to launch from terminal each time.
  2. First start Winecfg changes should reflect in Scrivener on first launch
  3. Wine should default to Windows 10 instead of 7, but this can be changed in winecfg if needed.
  4. Believe I’ve sorted out the endless hang some users experienced after .Net installed
  5. Fixed a silent failure to launch some users encountered.
  6. Updated to the 24.08 runtimes as some users were not finding the 23.08 variants in their repositories.
3 Likes

Nice work. Just installed the latest on a completely fresh install of Mint (on a different laptop). Only encountered one issue so far: after changing the dpi (from 162 to 144) the program got stuck and couldn’t force quit either. Needed to reboot.
I’ll keep on using and see if anything comes up.
The two versions of Scrivenix previously installed (Debian and Mint) have been running completely fine, no problems since install.

1 Like