summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-04-19 10:30:33 +0300
committerAndreas Kling <kling@serenityos.org>2020-04-19 11:14:26 +0200
commitf8b2a7b4a71243fc749d5c466920a1769e5e2982 (patch)
tree6a3107daaff62b5f5f0e3fa0eba9c4d7a12da82e /Applications
parent03f2024b6ecf9bea7941a521779d18ca1d757a9f (diff)
downloadserenity-f8b2a7b4a71243fc749d5c466920a1769e5e2982.zip
LibCore+LibGUI: Move DesktopServices to LibCore
Diffstat (limited to 'Applications')
-rw-r--r--Applications/FileManager/DirectoryView.cpp4
-rw-r--r--Applications/FileManager/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp
index f9800406bd..e52f6ce0bf 100644
--- a/Applications/FileManager/DirectoryView.cpp
+++ b/Applications/FileManager/DirectoryView.cpp
@@ -28,7 +28,7 @@
#include <AK/FileSystemPath.h>
#include <AK/StringBuilder.h>
#include <AK/URL.h>
-#include <LibGUI/DesktopServices.h>
+#include <LibCore/DesktopServices.h>
#include <LibGUI/SortingProxyModel.h>
#include <stdio.h>
#include <unistd.h>
@@ -70,7 +70,7 @@ void DirectoryView::handle_activation(const GUI::ModelIndex& index)
return;
}
- GUI::DesktopServices::open(URL::create_with_file_protocol(path));
+ Core::DesktopServices::open(URL::create_with_file_protocol(path));
}
DirectoryView::DirectoryView()
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp
index e11823b117..90b0d10caa 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -31,6 +31,7 @@
#include <AK/StringBuilder.h>
#include <AK/URL.h>
#include <LibCore/ConfigFile.h>
+#include <LibCore/DesktopServices.h>
#include <LibCore/MimeData.h>
#include <LibCore/UserInfo.h>
#include <LibGUI/AboutDialog.h>
@@ -39,7 +40,6 @@
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Clipboard.h>
-#include <LibGUI/DesktopServices.h>
#include <LibGUI/FileSystemModel.h>
#include <LibGUI/InputBox.h>
#include <LibGUI/Label.h>
@@ -154,7 +154,7 @@ int run_in_desktop_mode(RefPtr<Core::ConfigFile> config, String initial_location
return;
auto& node = model->node(index);
auto path = node.full_path(model);
- GUI::DesktopServices::open(URL::create_with_file_protocol(path));
+ Core::DesktopServices::open(URL::create_with_file_protocol(path));
};
window->show();