25 lines
642 B
Python
25 lines
642 B
Python
import sys
|
|
from samsara.core.startup import desktop_error
|
|
|
|
|
|
def main():
|
|
error = desktop_error()
|
|
if error:
|
|
print(error, file=sys.stderr)
|
|
return 1
|
|
from samsara.ui.branding import configure_taskbar_identity, application_icon
|
|
configure_taskbar_identity()
|
|
from PySide6.QtWidgets import QApplication
|
|
from samsara.ui.window import MainWindow
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName('Samsara')
|
|
app.setDesktopFileName('samsara')
|
|
app.setWindowIcon(application_icon())
|
|
window = MainWindow()
|
|
window.show()
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|