summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/StandardPaths.h
blob: 470438c62d5d882921ce805531fc0073f4b4ae49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 * Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Error.h>
#include <AK/Forward.h>

namespace Core {

class StandardPaths {
public:
    static DeprecatedString home_directory();
    static DeprecatedString desktop_directory();
    static DeprecatedString documents_directory();
    static DeprecatedString downloads_directory();
    static DeprecatedString tempfile_directory();
    static DeprecatedString config_directory();
    static DeprecatedString data_directory();
    static ErrorOr<DeprecatedString> runtime_directory();
    static ErrorOr<Vector<String>> font_directories();
};

}