Classes | |
| struct | DesktopIndex |
Functions | |
| std::string | lower (std::string s) |
| std::string | trim_copy (std::string s) |
| std::string | normalized_address (std::string s) |
| bool | is_unknown_identity_value (const std::string &value) |
| bool | has_reliable_process_identity (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args) |
| bool | is_unknown_display_name (const std::string &display_name) |
| std::string | basename_of (std::string s) |
| std::string | strip_wrappers (std::string s) |
| std::vector< std::string > | split_exec_tokens (const std::string &exec) |
| std::string | key_for (std::string s) |
| void | add_key (std::unordered_map< std::string, AppMetadata > &map, const std::string &raw, const AppMetadata &meta) |
| bool | token_is_env_assignment (const std::string &t) |
| void | add_exec_aliases (std::unordered_map< std::string, AppMetadata > &map, const std::string &commandline, const AppMetadata &meta) |
| bool | looks_like_thread_name (const std::string &comm) |
| std::string | icon_name_from_appinfo (const Glib::RefPtr< Gio::AppInfo > &ai) |
| void | build_index_locked () |
| void | add_candidate (std::vector< std::string > &out, const std::string &s) |
| std::vector< std::string > | browser_aliases_for (const std::string &raw) |
| std::optional< AppMetadata > | lookup_exact_or_alias (const std::vector< std::string > &candidates) |
| std::optional< AppMetadata > | lookup_prefix (const std::vector< std::string > &candidates) |
| AppMetadata | fallback_metadata (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args) |
Variables | |
| constexpr const char * | kGenericIcon = "application-x-executable" |
| constexpr const char * | kUnknownProcessLabel |
| constexpr const char * | kSafeLocalProcessLabel |
| constexpr const char * | kSafeLocalProcessIcon = "network-workgroup" |
| DesktopIndex | g_index |
| std::mutex | g_index_mutex |
| void bsc::ui_util::anonymous_namespace{AppResolver.cpp}::add_candidate | ( | std::vector< std::string > & | out, |
| const std::string & | s ) |
Definition at line 259 of file AppResolver.cpp.
References add_candidate(), basename_of(), and strip_wrappers().
Referenced by add_candidate().
| void bsc::ui_util::anonymous_namespace{AppResolver.cpp}::add_exec_aliases | ( | std::unordered_map< std::string, AppMetadata > & | map, |
| const std::string & | commandline, | ||
| const AppMetadata & | meta ) |
Definition at line 179 of file AppResolver.cpp.
References add_exec_aliases(), add_key(), split_exec_tokens(), strip_wrappers(), and token_is_env_assignment().
Referenced by add_exec_aliases(), and build_index_locked().
| void bsc::ui_util::anonymous_namespace{AppResolver.cpp}::add_key | ( | std::unordered_map< std::string, AppMetadata > & | map, |
| const std::string & | raw, | ||
| const AppMetadata & | meta ) |
Definition at line 164 of file AppResolver.cpp.
References add_key(), basename_of(), and key_for().
Referenced by add_exec_aliases(), add_key(), and build_index_locked().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::basename_of | ( | std::string | s | ) |
Definition at line 111 of file AppResolver.cpp.
References basename_of().
Referenced by add_candidate(), add_key(), basename_of(), and fallback_metadata().
| std::vector< std::string > bsc::ui_util::anonymous_namespace{AppResolver.cpp}::browser_aliases_for | ( | const std::string & | raw | ) |
Definition at line 267 of file AppResolver.cpp.
References browser_aliases_for(), and lower().
Referenced by browser_aliases_for(), and lookup_exact_or_alias().
| void bsc::ui_util::anonymous_namespace{AppResolver.cpp}::build_index_locked | ( | ) |
Definition at line 233 of file AppResolver.cpp.
References add_exec_aliases(), add_key(), build_index_locked(), bsc::ui_util::anonymous_namespace{AppResolver.cpp}::DesktopIndex::built, bsc::ui_util::anonymous_namespace{AppResolver.cpp}::DesktopIndex::by_key, bsc::ui_util::AppMetadata::display_name, g_index, bsc::ui_util::AppMetadata::icon_name, icon_name_from_appinfo(), and kGenericIcon.
Referenced by build_index_locked().
| AppMetadata bsc::ui_util::anonymous_namespace{AppResolver.cpp}::fallback_metadata | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args ) |
Definition at line 326 of file AppResolver.cpp.
References basename_of(), bsc::ui_util::AppMetadata::display_name, fallback_metadata(), bsc::ui_util::AppMetadata::icon_name, key_for(), kGenericIcon, kUnknownProcessLabel, and looks_like_thread_name().
Referenced by fallback_metadata().
| bool bsc::ui_util::anonymous_namespace{AppResolver.cpp}::has_reliable_process_identity | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args ) |
Definition at line 98 of file AppResolver.cpp.
References has_reliable_process_identity(), and is_unknown_identity_value().
Referenced by has_reliable_process_identity().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::icon_name_from_appinfo | ( | const Glib::RefPtr< Gio::AppInfo > & | ai | ) |
Definition at line 220 of file AppResolver.cpp.
References icon_name_from_appinfo().
Referenced by build_index_locked(), and icon_name_from_appinfo().
| bool bsc::ui_util::anonymous_namespace{AppResolver.cpp}::is_unknown_display_name | ( | const std::string & | display_name | ) |
Definition at line 107 of file AppResolver.cpp.
References is_unknown_display_name(), and is_unknown_identity_value().
Referenced by is_unknown_display_name().
| bool bsc::ui_util::anonymous_namespace{AppResolver.cpp}::is_unknown_identity_value | ( | const std::string & | value | ) |
Definition at line 89 of file AppResolver.cpp.
References is_unknown_identity_value(), kUnknownProcessLabel, lower(), and trim_copy().
Referenced by has_reliable_process_identity(), is_unknown_display_name(), and is_unknown_identity_value().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::key_for | ( | std::string | s | ) |
Definition at line 156 of file AppResolver.cpp.
References key_for(), lower(), and strip_wrappers().
Referenced by add_key(), fallback_metadata(), key_for(), lookup_exact_or_alias(), and lookup_prefix().
| bool bsc::ui_util::anonymous_namespace{AppResolver.cpp}::looks_like_thread_name | ( | const std::string & | comm | ) |
Definition at line 206 of file AppResolver.cpp.
References looks_like_thread_name(), and lower().
Referenced by fallback_metadata(), and looks_like_thread_name().
| std::optional< AppMetadata > bsc::ui_util::anonymous_namespace{AppResolver.cpp}::lookup_exact_or_alias | ( | const std::vector< std::string > & | candidates | ) |
Definition at line 299 of file AppResolver.cpp.
References browser_aliases_for(), bsc::ui_util::anonymous_namespace{AppResolver.cpp}::DesktopIndex::by_key, g_index, key_for(), and lookup_exact_or_alias().
Referenced by lookup_exact_or_alias().
| std::optional< AppMetadata > bsc::ui_util::anonymous_namespace{AppResolver.cpp}::lookup_prefix | ( | const std::vector< std::string > & | candidates | ) |
Definition at line 311 of file AppResolver.cpp.
References bsc::ui_util::anonymous_namespace{AppResolver.cpp}::DesktopIndex::by_key, g_index, key_for(), and lookup_prefix().
Referenced by lookup_prefix().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::lower | ( | std::string | s | ) |
Definition at line 47 of file AppResolver.cpp.
References lower().
Referenced by browser_aliases_for(), is_unknown_identity_value(), key_for(), looks_like_thread_name(), lower(), and normalized_address().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::normalized_address | ( | std::string | s | ) |
Definition at line 61 of file AppResolver.cpp.
References lower(), normalized_address(), and trim_copy().
Referenced by normalized_address().
| std::vector< std::string > bsc::ui_util::anonymous_namespace{AppResolver.cpp}::split_exec_tokens | ( | const std::string & | exec | ) |
Definition at line 132 of file AppResolver.cpp.
References split_exec_tokens().
Referenced by add_exec_aliases(), and split_exec_tokens().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::strip_wrappers | ( | std::string | s | ) |
Definition at line 121 of file AppResolver.cpp.
References strip_wrappers().
Referenced by add_candidate(), add_exec_aliases(), key_for(), and strip_wrappers().
| bool bsc::ui_util::anonymous_namespace{AppResolver.cpp}::token_is_env_assignment | ( | const std::string & | t | ) |
Definition at line 174 of file AppResolver.cpp.
References token_is_env_assignment().
Referenced by add_exec_aliases(), and token_is_env_assignment().
| std::string bsc::ui_util::anonymous_namespace{AppResolver.cpp}::trim_copy | ( | std::string | s | ) |
Definition at line 54 of file AppResolver.cpp.
References trim_copy().
Referenced by is_unknown_identity_value(), normalized_address(), and trim_copy().
| DesktopIndex bsc::ui_util::anonymous_namespace{AppResolver.cpp}::g_index |
Definition at line 44 of file AppResolver.cpp.
Referenced by build_index_locked(), lookup_exact_or_alias(), and lookup_prefix().
| std::mutex bsc::ui_util::anonymous_namespace{AppResolver.cpp}::g_index_mutex |
Definition at line 45 of file AppResolver.cpp.
|
constexpr |
Definition at line 31 of file AppResolver.cpp.
Referenced by build_index_locked(), and fallback_metadata().
|
constexpr |
Definition at line 37 of file AppResolver.cpp.
|
constexpr |
Definition at line 35 of file AppResolver.cpp.
|
constexpr |
Definition at line 32 of file AppResolver.cpp.
Referenced by fallback_metadata(), and is_unknown_identity_value().