|
FlatImage
A configurable Linux containerization system
|
Desktop integration command implementation. More...
Typedefs | |
| using | IntegrationItem = ns_db::ns_desktop::IntegrationItem |
Functions | |
| Value< void > | integrate (ns_config::FlatImage const &fim) |
| Integrates flatimage desktop data in current system. | |
| Value< fs::path > | setup_resolve_icon (std::string_view icon_path_or_url) |
| Resolves icon path or URL to a local file path. | |
| Value< void > | setup (ns_config::FlatImage const &fim, fs::path const &path_file_json_src) |
| Setup desktop integration in FlatImage. | |
| Value< void > | enable (ns_config::FlatImage const &fim, std::set< IntegrationItem > set_integrations) |
| Enables desktop integration for FlatImage. | |
| Value< void > | clean (ns_config::FlatImage const &fim) |
| Cleans desktop integration files. | |
| Value< void > | dump_icon (ns_config::FlatImage const &fim, fs::path path_file_dst) |
| Dumps the png or svg icon data to a file. | |
| Value< std::string > | dump_entry (ns_config::FlatImage const &fim) |
| Dumps the desktop entry if integration is configured. | |
| Value< std::string > | dump_mimetype (ns_config::FlatImage const &fim) |
| Dumps the application mime type file if integration is configured. | |
Desktop integration command implementation.
Implements the fim-desktop command for XDG desktop integration including .desktop file generation, MIME type registration, icon installation at multiple resolutions and application menu integration. Handles icon extraction, resizing, and proper XDG directory placement.
| using ns_desktop::IntegrationItem = ns_db::ns_desktop::IntegrationItem |
Definition at line 39 of file desktop.hpp.
|
inlinenodiscard |
Cleans desktop integration files.
| fim | The FlatImage configuration object |
Definition at line 646 of file desktop.hpp.
|
inlinenodiscard |
Dumps the desktop entry if integration is configured.
| fim | The FlatImage configuration object |
Definition at line 743 of file desktop.hpp.
|
inlinenodiscard |
Dumps the png or svg icon data to a file.
| fim | The FlatImage configuration object |
| path_file_dst | The destination file to write the icon to |
Definition at line 708 of file desktop.hpp.
|
inlinenodiscard |
Dumps the application mime type file if integration is configured.
| fim | The FlatImage configuration object |
Definition at line 762 of file desktop.hpp.
|
inlinenodiscard |
Enables desktop integration for FlatImage.
| fim | The FlatImage configuration object |
| set_integrations | The set with integrations to enable |
Definition at line 620 of file desktop.hpp.
|
inlinenodiscard |
Integrates flatimage desktop data in current system.
| config | Flatimage configuration object |
Definition at line 455 of file desktop.hpp.
|
inlinenodiscard |
Setup desktop integration in FlatImage.
| fim | FlatImage object |
| path_file_json_src | Path to the json which contains configuration data |
Definition at line 563 of file desktop.hpp.
|
inlinenodiscard |
Resolves icon path or URL to a local file path.
If the icon is a URL (http:// or https://), downloads it using wget. Otherwise, returns the path as-is.
| fim | FlatImage object |
| icon_path_or_url | Path to local icon file or URL to download from |
Definition at line 523 of file desktop.hpp.