Enable software mode on default

This commit is contained in:
Fierelier 2021-12-20 06:41:56 +01:00
parent 6b7cdeebee
commit 64a760021e
2 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@ Bad: It still sucks
Prerequisites (Debian and cousins):
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
Below "# Script start" you can find a setting for software mode, which you should use if you're experiencing trouble with the viewport not showing up or freezing.
Below "# Script start" you can find a setting for software mode, which you should comment out if you use a modern PC. I don't use the software rendering that comes included with WebKit, as it's unstable in my experience.
"""
import sys
@ -34,8 +34,8 @@ sp = pUp(s)
# Script start
# Uncomment the following line for software-mode
#os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
# Comment the following line for hardware acceleration
os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
#os.environ["WEBKIT_USE_SINGLE_WEB_PROCESS"] = "1" # Deprecated, not required with this code
import gi

View File

@ -8,7 +8,7 @@ Not as fat as the GTK version of "my" browser, but outdated. Needs some old Qt5
Prerequisites (Debian and cousins):
sudo apt install python3-pyqt5 python3-qtpy
Below "# Script start" you can find a setting for software mode, which you should use if you're experiencing trouble with the viewport not showing up or freezing.
Below "# Script start" you can find a setting for software mode, which you should comment out if you use a modern PC. I don't use the software rendering that comes included with WebKit, as it's unstable in my experience.
"""
import sys
@ -31,8 +31,8 @@ sp = pUp(s)
# Script start
# Uncomment the following line for software-mode
#os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
# Comment the following line for hardware acceleration
os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
import qtpy
import qtpy.QtGui as QtGui
@ -40,6 +40,7 @@ from qtpy.QtGui import *
from qtpy.QtWidgets import *
from qtpy.QtCore import *
from PyQt5.QtWebKitWidgets import *
from PyQt5.QtWebKit import *
defaultProtocol = "https"
browserWindows = []