#pragma once

#include <QList>
#include <QString>
#include <QStringList>

struct DetachedCommand {
    QString program;
    QStringList arguments;
};

QList<DetachedCommand> browserOpenCommands(const QString &url);
QString normalizedQtPlatformPlugin(const QString &platform,
                                   const QString &desktopSession,
                                   bool hasWaylandDisplay);
bool openUrlWithDesktopIntegration(const QString &url, QString *error = nullptr);
