2020-01-18 08:38:21 +00:00
|
|
|
/*
|
2020-04-19 17:57:05 +00:00
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
2023-01-11 20:30:30 +00:00
|
|
|
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
2020-01-18 08:38:21 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 08:38:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-08-03 06:32:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-09 16:15:17 +00:00
|
|
|
#include <AK/Error.h>
|
2020-04-19 17:57:05 +00:00
|
|
|
#include <AK/Forward.h>
|
2019-08-03 06:32:07 +00:00
|
|
|
|
2020-04-19 17:57:05 +00:00
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class StandardPaths {
|
|
|
|
public:
|
2023-12-16 14:19:34 +00:00
|
|
|
static ByteString home_directory();
|
|
|
|
static ByteString desktop_directory();
|
|
|
|
static ByteString documents_directory();
|
|
|
|
static ByteString downloads_directory();
|
2024-01-29 18:18:53 +00:00
|
|
|
static ByteString music_directory();
|
|
|
|
static ByteString pictures_directory();
|
|
|
|
static ByteString videos_directory();
|
2023-12-16 14:19:34 +00:00
|
|
|
static ByteString tempfile_directory();
|
|
|
|
static ByteString config_directory();
|
2024-09-30 09:36:11 +00:00
|
|
|
static ByteString user_data_directory();
|
2024-09-30 09:39:07 +00:00
|
|
|
static Vector<ByteString> system_data_directories();
|
2023-12-16 14:19:34 +00:00
|
|
|
static ErrorOr<ByteString> runtime_directory();
|
2023-01-11 20:30:30 +00:00
|
|
|
static ErrorOr<Vector<String>> font_directories();
|
2020-04-19 17:57:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|