mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00:00
LibDesktop: Add an optional "Description" field to .af files
This commit is contained in:
parent
c17304a8f6
commit
89ab55b44b
2 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,11 @@ String AppFile::executable() const
|
||||||
return executable;
|
return executable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String AppFile::description() const
|
||||||
|
{
|
||||||
|
return m_config->read_entry("App", "Description").trim_whitespace();
|
||||||
|
}
|
||||||
|
|
||||||
String AppFile::category() const
|
String AppFile::category() const
|
||||||
{
|
{
|
||||||
return m_config->read_entry("App", "Category").trim_whitespace();
|
return m_config->read_entry("App", "Category").trim_whitespace();
|
||||||
|
|
|
@ -26,6 +26,7 @@ public:
|
||||||
String name() const;
|
String name() const;
|
||||||
String executable() const;
|
String executable() const;
|
||||||
String category() const;
|
String category() const;
|
||||||
|
String description() const;
|
||||||
bool run_in_terminal() const;
|
bool run_in_terminal() const;
|
||||||
Vector<String> launcher_file_types() const;
|
Vector<String> launcher_file_types() const;
|
||||||
Vector<String> launcher_protocols() const;
|
Vector<String> launcher_protocols() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue