#include <PhosphorShellLauncher/DesktopEntry.h>
|
| QStringList | execArgs () const |
| bool | showsOn (const QStringList ¤tDesktop) const |
|
| 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.
|
◆ 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 |
◆ 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: