Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShell::ShellLoader Class Reference

Finds the shell.qml an app runs. More...

#include <PhosphorShell/ShellLoader.h>

Public Member Functions

 ShellLoader (const QString &shellName, const QUrl &bundledShell=QUrl())
QUrl resolve () const
QString shellConfigDir () const

Detailed Description

Finds the shell.qml an app runs.

shellName is the app's directory name: the tree is looked up in <config>/<shellName>/ and <data>/<shellName>/ for every XDG config and data location. When none has one, bundledShell is the fallback, such as the shell.qml of a QML module linked into the binary (qrc:/qt/qml/<Module>/<Path>/shell.qml), used when it exists. Empty: no fallback.

Constructor & Destructor Documentation

◆ ShellLoader()

PhosphorShell::ShellLoader::ShellLoader ( const QString & shellName,
const QUrl & bundledShell = QUrl() )
explicit

Member Function Documentation

◆ resolve()

QUrl PhosphorShell::ShellLoader::resolve ( ) const
nodiscard

◆ shellConfigDir()

QString PhosphorShell::ShellLoader::shellConfigDir ( ) const
nodiscard

The documentation for this class was generated from the following file: