Add --no-fullscreen command line option to AutoInstaller GUI

- Added argparse to main() function for command line argument parsing
- Added --no-fullscreen flag to run GUI in windowed mode instead of fullscreen
- Useful for testing and development on systems without fullscreen support
- Maintains fullscreen as default behavior for production use
- Allows flexible deployment scenarios (fullscreen for live USB, windowed for testing)
parent 52d57595
......@@ -763,9 +763,21 @@ class AutoInstallerGUI(QMainWindow):
subprocess.run(["reboot"])
def main():
import argparse
parser = argparse.ArgumentParser(description='MBetter AutoInstaller GUI')
parser.add_argument('--no-fullscreen', action='store_true',
help='Run in windowed mode instead of fullscreen')
args = parser.parse_args()
app = QApplication(sys.argv)
window = AutoInstallerGUI()
if not args.no_fullscreen:
window.showFullScreen()
else:
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment