Description of problem: I opened the file... /usr/bin/www-browser with a text editor, and there I saw the following entry: [[ -z "$BROWSER" ]] && BROWSER=`which seamonkey 2> /dev/null` What I did not find was an entry for IceApe. But, in Mageia, Seamonkey has been replaced by IceApe. So, I added the following, at the top of the list: [[ -z "$BROWSER" ]] && BROWSER=`which iceape 2> /dev/null` Now this part of the file looks like this... strip_browser_var [[ -z "$BROWSER" ]] && BROWSER=`which iceape 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which firefox 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which mozilla-firefox 2> /dev/null` [[ -z "$BROWSER" ]] && [[ -n "$KDE_FULL_SESSION" ]] && which kfmclient > /dev/null 2>&1 && BROWSER="kfmclient openProfile webbrowsing" [[ -z "$BROWSER" ]] && BROWSER=`which epiphany 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which galeon 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which seamonkey 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which chromium-browser 2> /dev/null` [[ -z "$BROWSER" ]] && BROWSER=`which google-chrome 2> /dev/null` [[ -z "$BROWSER" ]] && which kfmclient > /dev/null 2>&1 && BROWSER="kfmclient openProfile webbrowsing" [[ -z "$BROWSER" ]] && which links > /dev/null 2>&1 && BROWSER="xvt -e links" [[ -z "$BROWSER" ]] && which lynx > /dev/null 2>&1 && BROWSER="xvt -e lynx" Now, when I execute the " www-browser " command IceApe opens (instead of Firefox). Also, when an application like Qbittorrent calls for a web browser, IceApe opens. Please add IceaApe to the list. You could leave the Seamonkey entry as is, because, who knows, someone, out there, might use Seamonkey. How reproducible: everytime
IceApe is missing in that file in cauldron, too. http://gitweb.mageia.org/software/desktop/common-data/tree/bin/www-browser Assigning to the mageiatools maintainers and CC'ing the IceApe maintainer.
Version: 6 => CauldronWhiteboard: (none) => MGA6TOOCC: (none) => cjw, marja11Assignee: bugsquad => mageiatools
www-browser is really messed up: 1. xdg-open expects it to be one's preferred text browser, where x-www-browser is expected to be one's preferred graphical browser (where Mageia's www-browser seems to be just for graphical browsers). Another thing is that it assumes that the presence of a browser means that it's usable. It should try to use the browser and go to the next browser in the list of browsers if a non-zero exit code is returned, like xdg-open does. 2. Speaking of which, in xdg-open, the BROWSER environment variable is a colon-separated list of browsers, where in Mageia's www-browser script, it can only be one. (e.g. BROWSER=iceape, not BROWSER=iceape:firefox:chromium-browser, which will fail in Mageia's www-browser script) 3. It doesn't include all browsers included in Mageia and includes some that aren't (including browsers, like Galeon, that are no longer developed and thus should be discouraged). xvt in the same package is also broken: 1. It's outdated. For example, it won't work in KDE 5+, for it uses kreadconfig instead of kreadconfig${KDE_SESSION_VERSION} like it should (for kreadconfig5 in KDE 5, kreadconfig6 in a potential upcoming KDE 6 (probably whenever Qt6 comes around, in a year a two), etc.). Another thing is that it says that terminal emulators need to accept -e, -T, and -geometry. Well GNOME Terminal is one of the terminals there (in fact, the first one tried if you're not using a DE) and it doesn't accept -T (but rather -t) or -geometry, and -e is deprecated. 2. Similar to www-browser above, it doesn't include all terminal emulators in Mageia and includes those that aren't.
CC: (none) => zooplah
(In reply to Keith Bowes from comment #2) > www-browser is really messed up: First www-browser is from before xdg-open existed, and the first thing it has been doing since xdg-open exists is to use xdg-open if available. However this is now broken because xdg-open was changed 5 years ago to first try www-browser which is quite bad for our www-browser... https://github.com/freedesktop/xdg-utils/commit/821c5d89b045eacd7a0a67bc20e008034e515341 It seems someone assumed some different version of www-browser is used everywhere and now we need to update our www-browser but I am not sure for which behaviour... Maybe return an error when called from xdg-open so that they try the rest of their fallback list? > 1. xdg-open expects it to be one's preferred text browser, where > x-www-browser is expected to be one's preferred graphical browser (where > Mageia's www-browser seems to be just for graphical browsers). Another > thing is that it assumes that the presence of a browser means that it's > usable. It should try to use the browser and go to the next browser in the > list of browsers if a non-zero exit code is returned, like xdg-open does. It checks if each of them is installed and if not tries the next one
CC: (none) => pterjan
The patch for that change to xdg-open says: If www-browser exists then it points to the preferred browser on Debian and derivatives, managed by the alternatives system.