Enable software mode on default
This commit is contained in:
parent
6b7cdeebee
commit
64a760021e
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue