|
| static QString | getIcon (const QString &filename) |
| | Retrieves the value for Icon= from a desktop file. More...
|
| |
| static QString | getName (const QString &filename) |
| | Retrieves the value for Name= from a desktop file. More...
|
| |
| static QString | getValue (const QString &filename, const QString &key) |
| | Retrieves the value of a key from a desktop file. More...
|
| |
| static bool | isCommandLineTool (const QString &filename) |
| | Checks if the application bundle is a command line tool. More...
|
| |
◆ getIcon()
| QString DesktopFile::getIcon |
( |
const QString & |
filename | ) |
|
|
static |
Retrieves the value for Icon= from a desktop file.
- Parameters
-
| filename | The path of the desktop entry file to work with. |
- Returns
- The name of the icon, or an empty string if not found.
◆ getName()
| QString DesktopFile::getName |
( |
const QString & |
filename | ) |
|
|
static |
Retrieves the value for Name= from a desktop file.
- Parameters
-
| filename | The path of the desktop entry file to work with. |
- Returns
- The name of the desktop entry, or an empty string if not found.
◆ getValue()
| QString DesktopFile::getValue |
( |
const QString & |
filename, |
|
|
const QString & |
key |
|
) |
| |
|
static |
Retrieves the value of a key from a desktop file.
- Parameters
-
| filename | The path of the desktop entry file to work with. |
| key | The key to look for. |
- Returns
- The value of the key, or an empty string if not found.
◆ isCommandLineTool()
| bool DesktopFile::isCommandLineTool |
( |
const QString & |
filename | ) |
|
|
static |
Checks if the application bundle is a command line tool.
- Parameters
-
| filename | The path of the desktop entry file to work with. |
- Returns
- True if the application is a command-line tool, false otherwise.
The documentation for this class was generated from the following files: