MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / get_current_menu_style

Function get_current_menu_style

Scripts/Settings.py:2105–2119  ·  view source on GitHub ↗

Detects the current menu style setting from bash.bashrc.

()

Source from the content-addressed store, hash-verified

2103 if any(label == "bin/unzip" for label, _path in bootstrap_files):
2104 bootstrap += 'chmod 700 "$BOOT/bin/unzip"\n'
2105 checks = []
2106 for name in archives:
2107 path = os.path.join(TERMUX_TRANSFER_DIR, name)
2108 checks.append((_transfer_sha256(path), name, os.path.getsize(path)))
2109 verify_lines = "\n".join(
2110 f"verify_archive {shlex.quote(digest)} {shlex.quote(name)} {size}"
2111 for digest, name, size in checks
2112 )
2113 source_arch = shlex.quote(str(metadata.get("source_arch") or ""))
2114 source_prefix = shlex.quote(str(metadata.get("source_prefix") or TERMUX_TRANSFER_PREFIX))
2115 source_sdk = shlex.quote(str(metadata.get("android_sdk") or ""))
2116 script = f"""#!/data/data/com.termux/files/usr/bin/bash
2117set -eu
2118umask 077
2119
2120TRANSFER_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
2121STAGE="$HOME/.termux_transfer_restore"
2122BOOT="$STAGE/bootstrap"

Callers 4

toggle_menu_autostartFunction · 0.70
change_languageFunction · 0.70
run_settings_menuFunction · 0.70
Settings.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected