v1.1.2
- Fixed HTML links.
The fix was this:
class HtmlWindow(QDialog):
def __init__(self, html_content, title, parent=None):
...
label.setText(html_content)
label.linkActivated.connect(self.openLink)
...
def openLink(self, link: str):
subprocess.Popen(
[
"sudo",
"-u",
os.getlogin(),
"python3",
"-c",
f"__import__('webbrowser').open('{link}')",
]
) No, I don't know how it works, please don't ask. It works. If it works you don't question it.