You are not logged in.

#1 2017-06-09 03:20:54

MidGe
Member
Registered: 2017-06-09
Posts: 14

Default behavior change required

Hello,

I have an application (git-annex) which produces an html output supposedly going to the web browser. In bunsenLabs it opens in geany (the default text editor?) by default.

How can I change that behavior?

I would also rather use my installed editor, rather than geany for text and other files as well.

Would I need uninstall geany and dependencies to achieve this or could I change the default editor setting somewhere?

Thanks for any help.

Offline

#2 2017-06-09 04:40:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Default behavior change required

1. open thunar
2. right click on a text file
3. click on properties
4. select your text editor of choice

Repeat the process for any html file selecting the browser of choice.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2017-06-09 04:41:12

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: Default behavior change required

In the right-click menu, go to System>Edit Debian Alternatives.
Click "bl-text-editor".
If your chosen editor is not listed as one of the options in the right-hand panel, you can use the "Add" button to add it manually. (You will need to enter the full path to the executable.)
It's not necessary to uninstall geany.
---
How does git-annex produce its html output: to stdout or as a file?
What command do you use to send that output to a browser?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#4 2017-06-09 05:04:53

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Default behavior change required

^ Much better advice.  I stand corrected.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2017-06-09 05:16:28

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: Default behavior change required

^We cross-posted. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#6 2017-06-09 06:24:00

MidGe
Member
Registered: 2017-06-09
Posts: 14

Re: Default behavior change required

Thank you both smile very much for your help.

This solves half my problem. I, now have my editor of choice as default, however, what I would like is that all html files, and html files only, be directed to a browser rather than to the editor. I am satisfied with text files being directed to my editor, as they now are since applying the above solution.

Thanks again for your help.

Offline

#7 2017-06-09 06:49:11

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Default behavior change required

I think this may be the problem:

Diproton: ~ $ xdg-mime query default text/html
bl-www-browser.desktop
Diproton: ~ $

Not sure how to fix it though, give me a minute...

EDIT: @MidGe, what is the output on your system?

Last edited by Head_on_a_Stick (2017-06-09 06:52:05)

Offline

#8 2017-06-09 07:03:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: Default behavior change required

MidGe wrote:

what I would like is that all html files, and html files only, be directed to a browser rather than to the editor.

Directed by what? Do you mean, when you open them with your file manager?
If Thunar, then follow Sector11's advice above, though for html files:

1. open thunar
2. right click on an html file
3. click on "Open With">"Open With Other Application"
3a. make sure "Use as default" is checked
4. choose "X Web Browser"

If "X Web Browser" turns out not to be your favourite browser, you can change the setting for x-www-browser in Debian Alternatives in the same way as bl-text-editor.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#9 2017-06-09 07:09:57

MidGe
Member
Registered: 2017-06-09
Posts: 14

Re: Default behavior change required

johnraff wrote:

Directed by what? Do you mean, when you open them with your file manager?

Thanks John,

No, I guess it is a piped output from a process/application (git-annex). I "guess" since invoking the git-annex command opens up the editor and load what is an html file.

Michel

Offline

#10 2017-06-09 07:19:09

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: Default behavior change required

git config --global web.browser xdg-open

does anything?

Offline

#11 2017-06-09 07:24:28

MidGe
Member
Registered: 2017-06-09
Posts: 14

Re: Default behavior change required

smile

Miraculous!  That did the trick.  I guess I was looking in the wrong places all along.

That is two thing I learned today. (Edit Debian Alternatives and this git configuration!).

Thanks a lot, guys!

Michel

Offline

Board footer

Powered by FluxBB