mirror of
https://github.com/RustyRaptor/deckhud.git
synced 2026-12-03 15:55:16 -07:00
deckhud-ui launcher replaces the qml runner where it isn't available, LayerShellQt is built as a module, Go modules come from proxy.golang.org archives so the build is offline. Adds desktop entry, AppStream metainfo, icon, offscreen-rendered store screenshots, and makes 'run' the default command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013UzjWSBjtVZ2zi8fJxS2hH
23 lines
771 B
C++
23 lines
771 B
C++
// deckhud-ui: loads the overlay QML. Replaces the system `qml` runner where
|
|
// it isn't available (the Flatpak runtime only ships it in the SDK).
|
|
// Usage: deckhud-ui <main.qml> <ws://daemon-url>
|
|
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QUrl>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QGuiApplication app(argc, argv);
|
|
app.setApplicationName(QStringLiteral("deckhud"));
|
|
app.setDesktopFileName(QStringLiteral("io.github.RustyRaptor.deckhud"));
|
|
if (argc < 2) {
|
|
qCritical("usage: deckhud-ui <main.qml> <ws://url>");
|
|
return 2;
|
|
}
|
|
QQmlApplicationEngine engine;
|
|
engine.load(QUrl::fromLocalFile(QString::fromLocal8Bit(argv[1])));
|
|
if (engine.rootObjects().isEmpty())
|
|
return 1;
|
|
return app.exec();
|
|
}
|