alessivs / supermemo-wine

Project to make SuperMemo for Windows editions runnable with Wine
63 stars 5 forks source link

[Bug] changing default stylesheet: SM17 freezes #31

Open Golddouble opened 2 years ago

Golddouble commented 2 years ago

I use your Lutris variant of SM 17. I use the installation I have made about 1.5 years ago.

What's the problem? Answer: SM17 freezes.

How to reproduce:

  1. Press "add new" so that a new blank element is created using the default template "Item" and "default Style"
  2. Type in some text in both html Components
  3. menu->Tools->Optins->Fonts
  4. uncheck "use question and anwer fonts in html"
  5. press stylesheet
  6. choose text
  7. press the font button
  8. change font size (choose a greater size)
  9. press OK
  10. and again OK Result: SM is frozen.

Thank you for reproducing this.

. . Lutris: 0.5.7.1 ksnip_20220110-215526

Golddouble commented 2 years ago

I have now made a few attempts in a VirtualBox (Win8.1).

Unfortunately, this puts a much higher load on the CPU (Intel Core i5-4570):

Linux: idle: about 2% SM started in wine: idle: about 3% Linux with started Virtual Box with Win 8.1: idle: about 4% SM started in the Win8.1 VM: idle: about 13% SM started in the Win8.1 VM (sound option inactivated for the VM): idle: about 12%

Golddouble commented 2 years ago

I have solved this.

Here is how I have done it:

  1. open Lutris
  2. select the programme (-> Supermemo 17)
  3. At the right side click on "Wine Registry" -> Wine Registry opens
  4. navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CSSfile
  5. in the folder "CSSfile" create the key shell
  6. in the created folder shell create the key open
  7. in the created folder "open" create the key command
  8. select the created folder "command"
  9. double click on "(standard)" (on right side)
  10. put in the filed "C:\windows\system32\notepad.exe %1"
  11. close the registry
  12. start supermemo 17 new and try if it now works. -> result: now we can edit the stylesheet

Could this "registry entry" be included in your Lutris SM Installer, so that is made automatically in the future?