Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sandbox.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
28#ifndef SEEN_INKSCAPE_IO_SANDBOX_H
29#define SEEN_INKSCAPE_IO_SANDBOX_H
30
31#include <giomm/file.h>
32#include <glibmm/refptr.h>
33#include <glibmm/ustring.h>
34#include <optional>
35
36namespace Inkscape::IO::Sandbox {
37
51
67Glib::ustring filesystem_get_display_path(std::optional<Glib::RefPtr<Gio::File const>> path,
68 Glib::ustring placeholder_if_empty = "");
69
70} // namespace Inkscape::IO::Sandbox
71
72#endif // SEEN_INKSCAPE_IO_SANDBOX_H
73
74/*
75 Local Variables:
76 mode:c++
77 c-file-style:"stroustrup"
78 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
79 indent-tabs-mode:nil
80 fill-column:99
81 End:
82*/
83// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
bool filesystem_is_sandboxed()
Query if the filesystem is "sandboxed", e.g., by using xdg-portal in flatpak/snap.
Definition sandbox.cpp:17
Glib::ustring filesystem_get_display_path(std::optional< Glib::RefPtr< Gio::File const > > path, Glib::ustring placeholder_if_empty)
Translate raw filesystem path to a path suitable for display.
Definition sandbox.cpp:27