#!/usr/bin/env python
from JAK.Application import JWebApp
from JAK.Utils import bindings
if bindings() == "PyQt5":
    from PyQt5.QtWebEngineWidgets import QWebEngineProfile


def main():
    # v1.0.0
    url = "discover.manjaro.org/applications/"

    
    app = JWebApp(
        window={
            "title": "Software Center"
         },
         webview={
             "webContents": url
         }
        )

    profile = QWebEngineProfile.defaultProfile()
    oldAgent = profile.httpUserAgent()
    profile.setHttpUserAgent(
               oldAgent.replace("X11", "SoftwareCenter").replace("Linux x86_64", "Manjaro")
                                    )
    app.run()
    
if __name__ == "__main__":
    main()

