Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShellLauncher::DesktopEntry Struct Reference

#include <PhosphorShellLauncher/DesktopEntry.h>

Public Member Functions

QStringList execArgs () const
bool showsOn (const QStringList &currentDesktop) const

Static Public Member Functions

static std::optional< DesktopEntry > parse (const QString &filePath, const QString &locale, const QString &id=QString())
 id is the entry id to stamp on the result.

Public Attributes

QString id
QString filePath
QString name
QString genericName
QString comment
QString icon
QString exec
QString path
QStringList keywords
QStringList categories
bool terminal = false
bool noDisplay = false
bool hidden = false
QStringList onlyShowIn
QStringList notShowIn

Member Function Documentation

◆ execArgs()

QStringList PhosphorShellLauncher::DesktopEntry::execArgs ( ) const
nodiscard

◆ parse()

std::optional< DesktopEntry > PhosphorShellLauncher::DesktopEntry::parse ( const QString & filePath,
const QString & locale,
const QString & id = QString() )
staticnodiscard

id is the entry id to stamp on the result.

The DEFAULT derives one from the file's own name alone, which is NOT what a scan produces: the scanner folds a vendor subdirectory into the id with a hyphen ("kde4/foo.desktop" becomes "kde4-foo"), because that is what makes an id unique across a whole applications tree. A caller parsing one file out of context gets the simpler form, which is right for that use and will not match the same file's id from a scan.

◆ showsOn()

bool PhosphorShellLauncher::DesktopEntry::showsOn ( const QStringList & currentDesktop) const
nodiscard

Member Data Documentation

◆ categories

QStringList PhosphorShellLauncher::DesktopEntry::categories

◆ comment

QString PhosphorShellLauncher::DesktopEntry::comment

◆ exec

QString PhosphorShellLauncher::DesktopEntry::exec

◆ filePath

QString PhosphorShellLauncher::DesktopEntry::filePath

◆ genericName

QString PhosphorShellLauncher::DesktopEntry::genericName

◆ hidden

bool PhosphorShellLauncher::DesktopEntry::hidden = false

◆ icon

QString PhosphorShellLauncher::DesktopEntry::icon

◆ id

QString PhosphorShellLauncher::DesktopEntry::id

◆ keywords

QStringList PhosphorShellLauncher::DesktopEntry::keywords

◆ name

QString PhosphorShellLauncher::DesktopEntry::name

◆ noDisplay

bool PhosphorShellLauncher::DesktopEntry::noDisplay = false

◆ notShowIn

QStringList PhosphorShellLauncher::DesktopEntry::notShowIn

◆ onlyShowIn

QStringList PhosphorShellLauncher::DesktopEntry::onlyShowIn

◆ path

QString PhosphorShellLauncher::DesktopEntry::path

◆ terminal

bool PhosphorShellLauncher::DesktopEntry::terminal = false

The documentation for this struct was generated from the following file:
  • phosphor-shell-launcher/include/PhosphorShellLauncher/DesktopEntry.h