mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:07:44 +00:00
Everywhere: Use LibFileSystem
where trivial
This commit is contained in:
parent
edab0cbf41
commit
1d24f394c6
115 changed files with 275 additions and 228 deletions
|
@ -41,5 +41,5 @@ set(GENERATED_SOURCES
|
|||
)
|
||||
|
||||
serenity_app(Browser ICON app-browser)
|
||||
target_link_libraries(Browser PRIVATE LibCore LibWebView LibWeb LibProtocol LibGUI LibDesktop LibConfig LibGfx LibIPC LibJS LibLocale LibMain LibSyntax LibSQL)
|
||||
target_link_libraries(Browser PRIVATE LibCore LibFileSystem LibWebView LibWeb LibProtocol LibGUI LibDesktop LibConfig LibGfx LibIPC LibJS LibLocale LibMain LibSyntax LibSQL)
|
||||
link_with_locale_data(Browser)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
@ -131,7 +132,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
auto url_from_argument_string = [](DeprecatedString const& string) -> URL {
|
||||
if (Core::DeprecatedFile::exists(string)) {
|
||||
if (FileSystem::exists(string)) {
|
||||
return URL::create_with_file_scheme(Core::DeprecatedFile::real_path_for(string));
|
||||
}
|
||||
return Browser::url_from_user_input(string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue