Tell Geany To Launch HTML Files In Mozilla Firefox on Xubuntu 14.04?
Hi,
Running Xubuntu 14.04 L.T.S. 64Bit fully updated. Running Geany version 1.23.1 from Ubuntu Software Store.
When I "execute" an HTML file, Geany opens the HTML file in Google Chrome? How can I tell Geany to execute and open HTML files in Mozilla Firefox?
I know it is Build/Set Build Commands/Execute commands, but I have no idea what to type there to open HTML files using Mozilla Firefox.
Thanks in advance!
Jesse
Hi,
Le 08/12/2014 21:46, Jesse Palser a écrit :
Running Xubuntu 14.04 L.T.S. 64Bit fully updated. Running Geany version 1.23.1 from Ubuntu Software Store.
When I "execute" an HTML file, Geany opens the HTML file in Google Chrome? How can I tell Geany to execute and open HTML files in Mozilla Firefox?
Set the preferred browser in Edit->Preferences->Tools->Browser. Normally by default it should be something like x-www-browser on Ubuntu so it should use the default's browser on the system, but you can change it to whatever command you'd like, like "firefox".
Alternatively a less slick method is to set the execute command to something like:
firefox "file://%d/%f"
instead of the default "builtin", but this will open a terminal window in addition, which will probably be annoying.
Hope it helps Colomban
On 12/08/2014 04:10 PM, Colomban Wendling wrote:
Hi,
Le 08/12/2014 21:46, Jesse Palser a écrit :
Running Xubuntu 14.04 L.T.S. 64Bit fully updated. Running Geany version 1.23.1 from Ubuntu Software Store.
When I "execute" an HTML file, Geany opens the HTML file in Google Chrome? How can I tell Geany to execute and open HTML files in Mozilla Firefox?
Set the preferred browser in Edit->Preferences->Tools->Browser. Normally by default it should be something like x-www-browser on Ubuntu so it should use the default's browser on the system, but you can change it to whatever command you'd like, like "firefox".
Alternatively a less slick method is to set the execute command to something like:
firefox "file://%d/%f"
instead of the default "builtin", but this will open a terminal window in addition, which will probably be annoying.
Hope it helps Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
The command works well, but a terminal window opens too? Is there a command to tell Geany to open HTML file in Firefox without showing terminal window? Thanks!
Jesse
Le 08/12/2014 22:42, Jesse Palser a écrit :
On 12/08/2014 04:10 PM, Colomban Wendling wrote:
Set the preferred browser in Edit->Preferences->Tools->Browser. Normally by default it should be something like x-www-browser on Ubuntu so it should use the default's browser on the system, but you can change it to whatever command you'd like, like "firefox".
Alternatively a less slick method is to set the execute command to something like:
firefox "file://%d/%f"
instead of the default "builtin", but this will open a terminal window in addition, which will probably be annoying.
[…]
Hi,
The command works well, but a terminal window opens too? Is there a command to tell Geany to open HTML file in Firefox without showing terminal window?
OK, I knew I shouldn't have mentioned the second solution :)
Use the first solution: reset the Execute command to "builtin" (without the quotes) and set edit->preferences->tools->browser to "firefox".
On 12/08/2014 04:47 PM, Colomban Wendling wrote:
Le 08/12/2014 22:42, Jesse Palser a écrit :
On 12/08/2014 04:10 PM, Colomban Wendling wrote:
Set the preferred browser in Edit->Preferences->Tools->Browser. Normally by default it should be something like x-www-browser on Ubuntu so it should use the default's browser on the system, but you can change it to whatever command you'd like, like "firefox".
Alternatively a less slick method is to set the execute command to something like:
firefox "file://%d/%f"
instead of the default "builtin", but this will open a terminal window in addition, which will probably be annoying.
[…]
Hi,
The command works well, but a terminal window opens too? Is there a command to tell Geany to open HTML file in Firefox without showing terminal window?
OK, I knew I shouldn't have mentioned the second solution :)
Use the first solution: reset the Execute command to "builtin" (without the quotes) and set edit->preferences->tools->browser to "firefox". _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
Thanks for the help with Geany. In Xubuntu settings, Mozilla Firefox IS the default web browser. Not sure if it's issue with Xubuntu or Geany, but using "builtin" opens Google Chrome.
Thanks!
Jesse
Le 08/12/2014 22:51, Jesse Palser a écrit :
[...] Thanks for the help with Geany. In Xubuntu settings, Mozilla Firefox IS the default web browser. Not sure if it's issue with Xubuntu or Geany, but using "builtin" opens Google Chrome.
Even after you set Edit->preferences->tools->browser to "firefox"??? BTW, what was the value before?
Anyway, the default browser Geany uses is "firefox", but Ubuntu has a history of changing this default to something they want. At some point it was x-www-browser, not sure if they changed it again. But if it *is* x-www-browser, it can be configured (with update-alternatives) and may have changed when you installed Chrome.
On 08/12/14 22:06, Colomban Wendling wrote:
Anyway, the default browser Geany uses is "firefox", but Ubuntu has a history of changing this default to something they want.
On my system it is set to ‘sensible-browser’ by default. The sensible-utils facility is like the ‘lite version’ of the alternatives facility.
I’m not entirely sure what relevance sensible-utils has versus the alternatives system in the Debuntu world — it might be vestigal or it might still do something that alternatives don’t. Either way, it’s probably an upstream Debian change.
The best option is, as Colomban said, just to set it to x-www-browser and use update-alternatives to configure that to Firefox, or just set firefox directly. Of course, uninstalling Chrome is the obvious brute force solution but I’m sure you want to test the HTML you are writing across browsers.
Take care,
James