I’m using Brave browser Version 1.14.84 Chromium: 85.0.4183.121 (Official build) (64-bit)
Operating System: openSUSE Tumbleweed 20200925
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.8.10-1-defaultfile://
OS Type: 64-bit
When I try to install any program as a 1-click installation, only the YMP file below opens.
I would like to know which one is wrong.
Here’s an example of installing the Kate editor (https://software.opensuse.org/package/kate). With Chromium, a 1-click installation works as it should, but with a Brave browser, it doesn’t. Only the file below will open and the installation will not begin.
<metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
<group distversion="openSUSE Tumbleweed">
<repositories>
<repository recommended="true">
<name>openSUSE:Factory</name>
<summary>The next openSUSE distribution</summary>
<description>Any user who wishes to have the newest packages that include, but are not limited to, the Linux kernel, SAMBA, git, desktops, office applications and many other packages, will want Tumbleweed. Tumbleweed appeals to Power Users, Software Developers and openSUSE Contributors. If you require the latest software stacks and Integrated Development Environment or need a stable platform closest to bleeding edge Linux, Tumbleweed is the best choice for you.
Staging dashboard is located at: https://build.opensuse.org/project/show/openSUSE:Factory
List of known devel projects: https://build.opensuse.org/package/view_file/openSUSE:Factory:Staging/dashboard/devel_projects
Have a look at http://en.opensuse.org/Portal:Factory for more details.</description>
<url>http://download.opensuse.org/tumbleweed/repo/oss/</url>
</repository>
</repositories>
<software>
<item>
<name>kate</name>
<summary>Advanced Text Editor</summary>
<description>Kate is an advanced text editor for KDE.</description>
</item>
</software>
</group>
</metapackage>
I do not know much about the Brave browser, and I avoid 1-click, but I guess that a browser must have “knowledge” about what to do when it gets a YPM (I do not know the MIME type that defines it) file from a server. Like it knows what to do with e.g. a JPEG file. I assume that Brave does not have this “knowledge” included. The result is a fall-back to Text (unknown type) and it renders thus the text on the page.
You could try, but I am not sure the will bother for such a special openSUSE oriented feature. I assume (but am not sure) that the YPM support in Firefox and some others is an addition belonging to the openSUSE distribution. But please, these are just vague thoughts and maybe faulty conclusions.
YMP one-click stuff only ever worked for me in Firefox but never did in Chrome or Chromium-based browsers like Brave.
I never bothered to investigate as there always was an option to download and install with Zypper as I recall.
One-click installations only work using the openSUSE-branded Firefox (ie from the openSUSE repository),
It’s the only web browser with the YMP MIME type configured.
Awhile back one Desktop actually didn’t install Firefox and instead installed a different web browser as its default.
After a short discussion in the bugzilla, the decision was to simply add Firefox and not try to add the YMP MIME type to other web browsers.
Of course, if the maintainers for that web browser decided they wanted to add the MIME type on their own, nothing prevents that…
That’s OK.
If you’d like to help modify this package,
Locate the OBS project (easiest way is probably by Search),
create an OBS account for yourself,
Fork the existing project,
Make your changes and submit to the project maintainers.
This thread is a bout the Bravo browser and not about Firefox (and it is a few months old without any discussion anymore).
When you have a solution how to implement MIME type text/x-suse-ymp in Bravo in a way that it will start a 1-click installation, please post it here. It is still possible that the OP will stumble into it.
When you have a Firefox problem, then please start a new thread about it (with more adequate information that does not require mind reading).