|
FlatImage
A configurable Linux containerization system
|
Functions | |
| Value< std::pair< fs::path, fs::path > > | get_path_file_icon_png (std::string_view name_app, uint32_t size) |
| Constructs the path to the png icon file. | |
| Value< std::pair< fs::path, fs::path > > | get_path_file_icon_svg (std::string_view name_app) |
| Constructs the path to the svg icon file. | |
| Value< fs::path > | get_path_file_desktop (ns_db::ns_desktop::Desktop const &desktop) |
| Get the file path to the desktop entry. | |
| Value< fs::path > | get_path_file_mimetype (ns_db::ns_desktop::Desktop const &desktop) |
| Get the file path to the application specific mimetype file. | |
| Value< fs::path > | get_path_file_mimetype_generic () |
| Get the file path to the generic mimetype file. | |
| Value< void > | generate_desktop_entry (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_binary, std::ostream &os) |
| Generates the desktop entry. | |
| Value< void > | integrate_desktop_entry (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_binary) |
| Integrates the desktop entry '.desktop'. | |
| bool | is_update_mime_database (fs::path const &path_file_binary, fs::path const &path_entry_mimetype) |
Checks if the mime database should be updated based on <glob pattern= | |
| Value< void > | update_mime_database () |
| Runs update-mime-database on the current XDG_DATA_HOME diretory. | |
| Value< void > | integrate_mime_database_generic () |
| Generates the flatimage generic mime package. | |
| Value< void > | generate_mime_database (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_binary, std::ostream &os) |
| Generates the flatimage app specific mime package. | |
| Value< void > | integrate_mime_database (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_binary) |
| Generates the flatimage app specific mime package. | |
| Value< void > | integrate_icons_svg (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_icon) |
| Integrates an svg icon for the flatimage mimetype. | |
| Value< void > | integrate_icons_png (ns_db::ns_desktop::Desktop const &desktop, fs::path const &path_file_icon) |
| Integrates PNG icons for the flatimage mimetype. | |
| Value< void > | integrate_icon_flatimage () |
| Integrates the svg icon for the 'flatimage' mimetype. | |
| Value< void > | integrate_icons (ns_config::FlatImage const &fim, ns_db::ns_desktop::Desktop const &desktop) |
| Integrate flatimage icons in the current $HOME directory. | |
Variables | |
| constexpr std::string_view const | template_dir_mimetype = "icons/hicolor/{}x{}/mimetypes" |
| constexpr std::string_view const | template_file_mime = "application-flatimage_{}.png" |
| constexpr std::string_view const | template_dir_apps = "icons/hicolor/{}x{}/apps" |
| constexpr std::string_view const | template_file_app = "flatimage_{}.png" |
| constexpr std::string_view const | template_dir_mime_scalable = "icons/hicolor/scalable/mimetypes" |
| constexpr std::string_view const | template_file_mime_scalable = "application-flatimage_{}.svg" |
| constexpr std::string_view const | template_dir_apps_scalable = "icons/hicolor/scalable/apps" |
| constexpr std::string_view const | template_file_app_scalable = "flatimage_{}.svg" |
| constexpr const std::array< uint32_t, 9 > | arr_sizes {16,22,24,32,48,64,96,128,256} |
|
nodiscard |
Generates the desktop entry.
| desktop | Desktop integration class |
| path_file_binary | Path to the flatimage binary |
| os | The output stream in which to write the desktop entry |
Definition at line 140 of file desktop.hpp.
|
inlinenodiscard |
Generates the flatimage app specific mime package.
| desktop | The desktop object |
| path_file_binary | The path to the flatimage binary |
| os | The output stream in which to write the mime package |
Definition at line 254 of file desktop.hpp.
|
nodiscard |
Get the file path to the desktop entry.
Definition at line 104 of file desktop.hpp.
|
nodiscard |
Constructs the path to the png icon file.
| name_app | The flatimage application name |
| size | The size of the icon, e.g., 32x32, 64x64 |
Definition at line 70 of file desktop.hpp.
|
nodiscard |
Constructs the path to the svg icon file.
| name_app | The flatimage application name |
Definition at line 88 of file desktop.hpp.
|
nodiscard |
Get the file path to the application specific mimetype file.
Definition at line 115 of file desktop.hpp.
|
nodiscard |
Get the file path to the generic mimetype file.
Definition at line 126 of file desktop.hpp.
|
nodiscard |
Integrates the desktop entry '.desktop'.
| desktop | Desktop integration class |
| path_file_binary | Path to the flatimage binary |
Definition at line 163 of file desktop.hpp.
|
inlinenodiscard |
Integrates the svg icon for the 'flatimage' mimetype.
Definition at line 378 of file desktop.hpp.
|
inlinenodiscard |
Integrate flatimage icons in the current $HOME directory.
| config | FlatImage configuration file |
| desktop | Desktop object |
Definition at line 406 of file desktop.hpp.
|
inlinenodiscard |
Integrates PNG icons for the flatimage mimetype.
| desktop | The desktop entry object |
| path_file_icon | The path to the icon file to integrate |
Definition at line 346 of file desktop.hpp.
|
inlinenodiscard |
Integrates an svg icon for the flatimage mimetype.
| desktop | The desktop entry object |
| path_file_icon | The path to the icon file to integrate |
Definition at line 314 of file desktop.hpp.
|
inlinenodiscard |
Generates the flatimage app specific mime package.
| desktop | The desktop object |
| path_file_binary | The path to the flatimage binary |
Definition at line 277 of file desktop.hpp.
|
inlinenodiscard |
Generates the flatimage generic mime package.
Definition at line 219 of file desktop.hpp.
|
inlinenodiscard |
Checks if the mime database should be updated based on <glob pattern=
| path_entry_mimetype | The path to the mimetype entry |
Definition at line 183 of file desktop.hpp.
|
inlinenodiscard |
Runs update-mime-database on the current XDG_DATA_HOME diretory.
Definition at line 204 of file desktop.hpp.
|
constexpr |
Definition at line 57 of file desktop.hpp.
|
constexpr |
Definition at line 48 of file desktop.hpp.
|
constexpr |
Definition at line 54 of file desktop.hpp.
|
constexpr |
Definition at line 51 of file desktop.hpp.
|
constexpr |
Definition at line 45 of file desktop.hpp.
|
constexpr |
Definition at line 49 of file desktop.hpp.
|
constexpr |
Definition at line 55 of file desktop.hpp.
|
constexpr |
Definition at line 46 of file desktop.hpp.
|
constexpr |
Definition at line 52 of file desktop.hpp.