From a7d6700d19e3a40f0a09c712ec99ad2f436614e8 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: May 18 2020 20:36:26 +0000 Subject: Allow appstream: links in the wiki Taken from https://github.com/openSUSE/wiki/pull/55 by guoyunhe: By enabling appstream: protocol, users can click a link and open app center app (GNOME Software or KDE Discover) and install the application easily. --- diff --git a/salt/profile/wiki/files/LocalSettings.php b/salt/profile/wiki/files/LocalSettings.php index 2ad7848..3ec04b0 100644 --- a/salt/profile/wiki/files/LocalSettings.php +++ b/salt/profile/wiki/files/LocalSettings.php @@ -197,6 +197,8 @@ $wgAllowExternalImages = true; // Enable links to external images $wgFileExtensions = array( 'doc', 'docx', 'gif', 'jpg', 'jpeg', 'odp', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pptx', 'svg', 'sxc', 'sxw', 'xls', 'xlsx' ); # Add XMPP functionality $wgUrlProtocols[] = 'xmpp:'; +# Add AppStream functionality +$wgUrlProtocols[] = 'appstream:'; # To be removed once the wiki transition is finished $wgGroupPermissions['user']['import'] = true;