Inkscape
Vector Graphics Editor
|
Functions | |
bool | filesystem_is_sandboxed () |
Query if the filesystem is "sandboxed", e.g., by using xdg-portal in flatpak/snap. | |
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. | |
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.
This function is similar to Gio::File::get_parse_name() and Glib::filename_display_name() but understands filesystem sandboxing.
path | File object representing the path (may be a folder or file). To represent empty values, use std::nullopt or Gio::File::create_from_path("") . |
placeholder_if_empty | Placeholder to be returned if the input path is empty. Value is in UTF8 encoding. |
Definition at line 27 of file sandbox.cpp.
References filesystem_is_sandboxed().
Referenced by Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::UI::Dialog::SingleExport::onExport(), Inkscape::UI::Dialog::BatchExport::setBatchPath(), and Inkscape::UI::Dialog::SingleExport::setFilename().
bool Inkscape::IO::Sandbox::filesystem_is_sandboxed | ( | ) |
Query if the filesystem is "sandboxed", e.g., by using xdg-portal in flatpak/snap.
Definition at line 17 of file sandbox.cpp.
Referenced by filesystem_get_display_path(), Inkscape::UI::Dialog::BatchExport::getPreviousBatchPath(), Inkscape::UI::Dialog::BatchExport::setBatchPath(), Inkscape::UI::Dialog::SingleExport::setFilename(), and Inkscape::UI::Dialog::SingleExport::setup().