The Help command does not work on my Linux Mint 21 system, because BROWSER env variable is not set so `sensible-browser` does nothing. At minimum, the Help command should report an error when the return value is non-zero.
However, my system does have a preferred browser set to firefox - I'm not sure if this is part of a (freedesktop.org?) standard. Ideally Geany would use that as the default browser tool. Or is that moving to $BROWSER instead?
Maybe we should use `xdg-open` instead?
BROWSER env variable is not set so sensible-browser does nothing
Hmm just realized Geany defaults to Firefox, Ubuntu must have overridden it (and Mint is using the Ubuntu package).
Hmm just realized Geany defaults to Firefox, Ubuntu must have overridden it (and Mint is using the Ubuntu package).
For a Geany built from git on LM I get "sensible-browser" in the preference. So its probably not Ubuntu, somehow Geany build selects that value, but I ran out of time to find how/where.
But help does work for me (opening in the preferred browser, chrome, selected in the LM desktop "Preferred applications" dialog).
Note #2444 #3178 as well.
For a Geany built from git on LM I get "sensible-browser" in the preference. So its probably not Ubuntu, somehow Geany build selects that value, but I ran out of time to find how/where.
Hmmm, no actual solution, but I ran the built from git Geany with a non-existant config dir, and it switched the settings back to usual defaults:
`x-terminal-emulator` -> `xterm` `sensible-browser` -> `firefox`
and now `Help` runs firefox but does not work because I didn't build the local doco so its looking for `https://www.geany.org/manual/1.39/index.html%60 which of course does not exist. @ntrel Is that your problem?
As to how the setting values above got into the local config `~/git-geany/config` from the default config `~/.config/geany` I don't know. Maybe a GP plugin does something wrong, will check later.
Ahhh, I figured it out, when I ran the wrong version of geany (see #3451) specifying this config it probably wrote the LM system defaults. Nothing a quick delete won't fix :-). So yes its Ubuntu that sets those values for terminal and browser, but thats totally allowable for distros to do that, they may not provide xterm or firefox by default.
@ntrel I totally agree that results should be checked, but I'm not sure what Geany can do if it detects failure (except write some message to debug).
Possibly one of the solutions from #2444 or #3178 might be better than fixed values, security oriented distros, lightweight distros, libre oriented distros, all commonly change the browser (even if its a de-trademarked firefox, its name changes). I wouldn't worry if the solution is Linux specific, windows and mac are `#ifdef`ed anyway.
And users (me for eg) often prefer different browsers.
I think we can close this now since #3178 is merged. @ntrel when use start current GIT master Geany with a fresh config, will it use the correct browser?
FTR, the "sensible-browser" default is patched in by Debian (and Ubuntu inherits this change). As pointed out earlier, Geany had the default "firefox" but now it uses GTK to find the system's default browser.
@eht16 Yep, works now (at least on latest Linux Mint anyway) - thanks! Sorry for the late reply.
Closed #3468 as completed.
Reopened #3468.
Closed #3468 as completed.
github-comments@lists.geany.org