@@ -372,9 +372,29 @@ public function getStylesheet() {
372372 */
373373 public function getManifest ($ app ) {
374374 $ cacheBusterValue = $ this ->config ->getAppValue ('theming ' , 'cachebuster ' , '0 ' );
375+ if ($ app === 'core ' || $ app === 'settings ' ) {
376+ $ name = $ this ->themingDefaults ->getName ();
377+ $ shortName = $ this ->themingDefaults ->getName ();
378+ $ startUrl = $ this ->urlGenerator ->getBaseUrl ();
379+ $ description = $ this ->themingDefaults ->getSlogan ();
380+ } else {
381+ $ info = $ this ->appManager ->getAppInfo ($ app );
382+ $ name = $ info ['name ' ] . ' - ' . $ this ->themingDefaults ->getName ();
383+ $ shortName = $ info ['name ' ];
384+ if (strpos ($ this ->request ->getRequestUri (), '/index.php/ ' ) !== false ) {
385+ $ startUrl = $ this ->urlGenerator ->getBaseUrl () . '/index.php/apps/ ' . $ app . '/ ' ;
386+ } else {
387+ $ startUrl = $ this ->urlGenerator ->getBaseUrl () . '/apps/ ' . $ app . '/ ' ;
388+ }
389+ $ description = $ info ['summary ' ];
390+ }
375391 $ responseJS = [
376- 'name ' => $ this ->themingDefaults ->getName (),
377- 'start_url ' => $ this ->urlGenerator ->getBaseUrl (),
392+ 'name ' => $ name ,
393+ 'short_name ' => $ shortName ,
394+ 'start_url ' => $ startUrl ,
395+ 'theme_color ' => $ this ->themingDefaults ->getColorPrimary (),
396+ 'background_color ' => $ this ->themingDefaults ->getColorPrimary (),
397+ 'description ' => $ description ,
378398 'icons ' =>
379399 [
380400 [
0 commit comments