diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-28 01:06:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-28 01:28:07 +0100 |
commit | 58890e03b660c7251172cb7405d68f5971cbc9fa (patch) | |
tree | 4a03d57e5e366ffa02ad8c40c5cb95e082c4d331 /Services/SystemMenu | |
parent | 97c42694dba07fce34321eee60e73601eb959dbd (diff) | |
download | serenity-58890e03b660c7251172cb7405d68f5971cbc9fa.zip |
Everywhere: Move AppFile from LibGUI to LibDesktop
This was mentioned in #4574, and the more I think about it the more it
feels just right - let's move it there! :^)
Having to link LaunchServer against LibGUI explicitly should've been
telling enough...
Diffstat (limited to 'Services/SystemMenu')
-rw-r--r-- | Services/SystemMenu/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Services/SystemMenu/main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Services/SystemMenu/CMakeLists.txt b/Services/SystemMenu/CMakeLists.txt index d0432a0e47..8d6a6adee8 100644 --- a/Services/SystemMenu/CMakeLists.txt +++ b/Services/SystemMenu/CMakeLists.txt @@ -4,4 +4,4 @@ set(SOURCES ) serenity_bin(SystemMenu) -target_link_libraries(SystemMenu LibGUI) +target_link_libraries(SystemMenu LibGUI LibDesktop) diff --git a/Services/SystemMenu/main.cpp b/Services/SystemMenu/main.cpp index 32a57e8c8b..fc63bf3d24 100644 --- a/Services/SystemMenu/main.cpp +++ b/Services/SystemMenu/main.cpp @@ -30,9 +30,9 @@ #include <LibCore/ConfigFile.h> #include <LibCore/DirIterator.h> #include <LibCore/StandardPaths.h> +#include <LibDesktop/AppFile.h> #include <LibGUI/Action.h> #include <LibGUI/ActionGroup.h> -#include <LibGUI/AppFile.h> #include <LibGUI/Application.h> #include <LibGUI/FileIconProvider.h> #include <LibGUI/Icon.h> @@ -103,7 +103,7 @@ int main(int argc, char** argv) Vector<String> discover_apps_and_categories() { HashTable<String> seen_app_categories; - GUI::AppFile::for_each([&](auto af) { + Desktop::AppFile::for_each([&](auto af) { g_apps.append({ af->executable(), af->name(), af->category() }); seen_app_categories.set(af->category()); }); |