browserchooser 0.0.2
A simple browser chooser.
Loading...
Searching...
No Matches
firefoxprofile.h File Reference
#include <QtCore/QList>
#include <QtCore/QPair>
#include <QtCore/QString>
Include dependency graph for firefoxprofile.h:

Go to the source code of this file.

Typedefs

using FirefoxProfilePair = QPair<QString, QString>

Functions

QList< FirefoxProfilePair > getFirefoxProfiles (const QString &configDir)

Typedef Documentation

◆ FirefoxProfilePair

Pair of (profile ID for launch, display name for UI).

Function Documentation

◆ getFirefoxProfiles()

QList< FirefoxProfilePair > getFirefoxProfiles ( const QString & configDir)
nodiscard

Reads the Firefox profiles.ini in the given config directory and returns profile pairs. Same format on Linux, macOS, and Windows.

Parameters
configDirPath to the Firefox config dir (contains profiles.ini).
Returns
List of (launch ID, display name) pairs; single profile yields one default entry.