diff --git a/docs/api/app.md b/docs/api/app.md index 2094c1e11706e..bb2c7433d6a68 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -1180,6 +1180,7 @@ Show the app's about panel options. These options can be overridden with `app.se * `copyright` String (optional) - Copyright information. * `version` String (optional) - The app's build version number. _macOS_ * `credits` String (optional) - Credit information. _macOS_ + * `authors` String[] (optional) - List of app authors. _Linux_ * `website` String (optional) - The app's website. _Linux_ * `iconPath` String (optional) - Path to the app's icon. _Linux_ diff --git a/shell/browser/browser_linux.cc b/shell/browser/browser_linux.cc index b3a6bd07a7e6d..eafc2990397c2 100644 --- a/shell/browser/browser_linux.cc +++ b/shell/browser/browser_linux.cc @@ -148,6 +148,7 @@ bool Browser::IsEmojiPanelSupported() { void Browser::ShowAboutPanel() { std::string app_name, version, copyright, icon_path, website; + base::ListValue* args; GtkAboutDialog* dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new()); @@ -159,6 +160,14 @@ void Browser::ShowAboutPanel() { gtk_about_dialog_set_copyright(dialog, copyright.c_str()); if (about_panel_options_.GetString("website", &website)) gtk_about_dialog_set_website(dialog, website.c_str()); + if (about_panel_options_.GetList("args", &args)) { + std::vector cstrs; + for (const auto& str : args->GetList()) { + cstrs.push_back(str.c_str()); + } + cstrs.push_back(nullptr); + gtk_about_dialog_set_authors(dialog, cstrs.data()); + } if (about_panel_options_.GetString("iconPath", &icon_path)) { GError* error = nullptr; GdkPixbuf* icon = gdk_pixbuf_new_from_file(icon_path.c_str(), &error);