From 98e45f012057869e738ecfd3179e41d7c0caee3c Mon Sep 17 00:00:00 2001 From: Evernow <44484725+Evernow@users.noreply.github.com> Date: Wed, 12 Jan 2022 20:55:16 -0500 Subject: [PATCH 1/2] Add Easter Egg for Wine user Checks to see if a Wine registry key exists, if it does then it opens something. As long as someone doesn't have Internet Explorer installed in their prefix, this will open it in their default browser. --- Automator/gui/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Automator/gui/main.py b/Automator/gui/main.py index 6592f8b..a7c8a9a 100644 --- a/Automator/gui/main.py +++ b/Automator/gui/main.py @@ -8,6 +8,8 @@ from Automator.gui.sysinfo import SysInfoWindow from Automator.misc.update_check import run_update_check +import subprocess +from winreg import * class MainWindow(QMainWindow): def __init__(self, *args, **kwargs): @@ -24,7 +26,13 @@ def __init__(self, *args, **kwargs): title.setFont(default_font) layout.addWidget(title) layout.setAlignment(title, Qt.AlignmentFlag.AlignHCenter) - + # Wine Easter Egg + try: # Tries to open key only present when running under Wine + aKey = OpenKey(ConnectRegistry(None,HKEY_CURRENT_USER), r"Software\Wine", 0, KEY_READ) + + subprocess.run("winebrowser http://funny.computer/linux/") # Nobody actually installs IE in their prefixes right? + except: + pass button_data = [ ('SFC / DISM / CHKDSK scans', 'rescuecommands', lambda: RescueCommandsWindow(self).exec()), ('MSInfo32 Report (Sysinfo)', 'sysinfo', lambda: SysInfoWindow(self).exec()), From 962699d943a2c43a77dc68438d8f76333482b545 Mon Sep 17 00:00:00 2001 From: Evernow <44484725+Evernow@users.noreply.github.com> Date: Wed, 12 Jan 2022 23:37:53 -0500 Subject: [PATCH 2/2] http -> https --- Automator/gui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Automator/gui/main.py b/Automator/gui/main.py index a7c8a9a..6459511 100644 --- a/Automator/gui/main.py +++ b/Automator/gui/main.py @@ -30,7 +30,7 @@ def __init__(self, *args, **kwargs): try: # Tries to open key only present when running under Wine aKey = OpenKey(ConnectRegistry(None,HKEY_CURRENT_USER), r"Software\Wine", 0, KEY_READ) - subprocess.run("winebrowser http://funny.computer/linux/") # Nobody actually installs IE in their prefixes right? + subprocess.run("winebrowser https://funny.computer/linux/") # Nobody actually installs IE in their prefixes right? except: pass button_data = [