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):
|
Prerequisites (Debian and cousins):
|
||||||
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
|
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
|
import sys
|
||||||
|
@ -34,8 +34,8 @@ sp = pUp(s)
|
||||||
|
|
||||||
# Script start
|
# Script start
|
||||||
|
|
||||||
# Uncomment the following line for software-mode
|
# Comment the following line for hardware acceleration
|
||||||
#os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
|
os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
|
||||||
|
|
||||||
#os.environ["WEBKIT_USE_SINGLE_WEB_PROCESS"] = "1" # Deprecated, not required with this code
|
#os.environ["WEBKIT_USE_SINGLE_WEB_PROCESS"] = "1" # Deprecated, not required with this code
|
||||||
import gi
|
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):
|
Prerequisites (Debian and cousins):
|
||||||
sudo apt install python3-pyqt5 python3-qtpy
|
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
|
import sys
|
||||||
|
@ -31,8 +31,8 @@ sp = pUp(s)
|
||||||
|
|
||||||
# Script start
|
# Script start
|
||||||
|
|
||||||
# Uncomment the following line for software-mode
|
# Comment the following line for hardware acceleration
|
||||||
#os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
|
os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
|
||||||
|
|
||||||
import qtpy
|
import qtpy
|
||||||
import qtpy.QtGui as QtGui
|
import qtpy.QtGui as QtGui
|
||||||
|
@ -40,6 +40,7 @@ from qtpy.QtGui import *
|
||||||
from qtpy.QtWidgets import *
|
from qtpy.QtWidgets import *
|
||||||
from qtpy.QtCore import *
|
from qtpy.QtCore import *
|
||||||
from PyQt5.QtWebKitWidgets import *
|
from PyQt5.QtWebKitWidgets import *
|
||||||
|
from PyQt5.QtWebKit import *
|
||||||
|
|
||||||
defaultProtocol = "https"
|
defaultProtocol = "https"
|
||||||
browserWindows = []
|
browserWindows = []
|
||||||
|
|
Loading…
Reference in New Issue