Как да забраним на Опера да се прави сама браузър по подразбиране в линукс - решение.
И не е бъзик, наистина изтриха темата от форума на Опера, както ще видите в клипчето. Затова качих решението и в GitHub, и в YouTube - да видим как ще го изтрият оттам!
Само на английски е, за да се разбира от всички.
If you have come across the agressive and unsolicited behavior by Opera to make itself default browser without your permission in Linux, I have the solution. It's iron-clad and developer proof solution.
If your default browser is another and Opera is just secondary for websites testing, first set your prefered browser in your desktop settings. In Cinnamon, XFCE, Gnome it should be "Preferred programs" or something like that.
After that open ~/.local/share/applications/mimeinfo.cache in any text editor (gedit, pluma, etc), press CTRL+H and in the first field type (without the quotes) "opera.desktop;", leave the second field empty and press "Replace all".
Thirdly, open the desktop file with the same name ("opera.desktop" - by default it's in /usr/share/applications, unless you have manually moved it to ~/.local/share/applications) with a text editor (this will require sudo, if the desktop file is in /usr/share/applications) and remove the entire line that starts with "MimeType=". Save the changes and exit the text editor.
Finally, open terminal and type:
Код за потвърждение: Избери целия код
sudo chattr +i /usr/share/applications/opera.desktop ~/.local/share/applications/mimetype.cacheКод за потвърждение: Избери целия код
update-desktop-database ~/.local/share/applicationsAfter you do that, Opera will no longer be able to make itself default browser, no matter what the devs do bc they don't know your sudo password and thus they won't be able to revert your changes.


