You are not logged in.
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
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
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 )
Offline
^ Much better advice. I stand corrected.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^We cross-posted.
...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 )
Offline
Thank you both 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
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
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 )
Offline
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
git config --global web.browser xdg-open
does anything?
Offline
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