Skip to content

Instantly share code, notes, and snippets.

import os
def main():
user_home = os.path.expanduser("~")
search_folder = os.path.join(user_home, "Library")
for root, folders, files in os.walk(search_folder):
for f in files:
if f == "Local State":
path = os.path.join(root, f)
print(f"Local State Found - {path}")
@matthew-mclaren
matthew-mclaren / electron_patcher.py
Last active February 12, 2025 17:02 — forked from khronokernel/electron_patcher.py
Electron and Chrome patcher to force OpenGL rendering
"""
electron_patcher.py: Enforce 'use-angle@1' in Chrome and Electron applications
Version 1.0.1 (2025-02-12)
"""
import enum
import json
from pathlib import Path