Files
deckhud/launcher/main.cpp
T
ziadarafatandClaude Opus 5.5 8308128fed feat(flatpak): Flatpak packaging with Background-portal autostart
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
2026-10-30 16:56:10 -06:00

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();
}