diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibDesktop/AppFile.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibDesktop/AppFile.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibDesktop/AppFile.cpp b/Userland/Libraries/LibDesktop/AppFile.cpp index f97030b78d..17fb52b2ac 100644 --- a/Userland/Libraries/LibDesktop/AppFile.cpp +++ b/Userland/Libraries/LibDesktop/AppFile.cpp @@ -77,6 +77,11 @@ String AppFile::executable() const return executable; } +String AppFile::description() const +{ + return m_config->read_entry("App", "Description").trim_whitespace(); +} + String AppFile::category() const { return m_config->read_entry("App", "Category").trim_whitespace(); diff --git a/Userland/Libraries/LibDesktop/AppFile.h b/Userland/Libraries/LibDesktop/AppFile.h index 1952c0e690..ffcbc5fde9 100644 --- a/Userland/Libraries/LibDesktop/AppFile.h +++ b/Userland/Libraries/LibDesktop/AppFile.h @@ -26,6 +26,7 @@ public: String name() const; String executable() const; String category() const; + String description() const; bool run_in_terminal() const; Vector<String> launcher_file_types() const; Vector<String> launcher_protocols() const; |