Inkscape
Vector Graphics Editor
|
Inkscape::IO::Sandbox. More...
Go to the source code of this file.
Namespaces | |
namespace | Inkscape |
Helper class to stream background task notifications as a series of messages. | |
namespace | Inkscape::IO |
Low-level IO code. | |
namespace | Inkscape::IO::Sandbox |
Functions | |
bool | Inkscape::IO::Sandbox::filesystem_is_sandboxed () |
Query if the filesystem is "sandboxed", e.g., by using xdg-portal in flatpak/snap. | |
Glib::ustring | Inkscape::IO::Sandbox::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. | |
Utility functions for running Inkscape inside a "sandboxed" filesystem. (on Linux: xdg-portal with snap or flatpak).
Background: To isolate different applications against each other, some newer packaging formats do not allow Inkscape direct access to the user home directory or other paths. Instead, Inkscape can only access special "magic paths" returned by the file-choose dialog. This brings some issues:
Copyright (C) 2024 Authors Released under GNU GPL v2+, read the file 'COPYING' for more information.
Definition in file sandbox.h.