These are chat archives for mono/monodevelop

9th
Feb 2018
g
@germgerm
Feb 09 12:24
How do we specify the console app ? I know I did this in the past on lubuntu when no console was being displayed at all. My default system terminal is xfce but MD is using xterm which is a problem because it doesn't allow copy.
milleniumbug
@milleniumbug
Feb 09 12:28
I don't think there's an option for that, last time I used MonoDevelop I removed xterm and instead made my own "shim" for the xterm, that is, wrote a bash script named xterm that launched another terminal emulator https://github.com/milleniumbug/dotfiles/tree/master/monodevelop/xterm-shim
g
@germgerm
Feb 09 13:04
I tried replacing xterm with another but then I got errors about not being able to connect to the debugger. What did work was installing gnome-terminal and setting GNOME_DESKTOP_SESSION_ID=1 - I am going to look through the code to see where this is used so I can force it without actually setting that var as it seems to have an impact on the system in general
g
@germgerm
Feb 09 13:17
I see where terminal is being handled in MD code - GNOME/MATE/KDE or X - adding XDG would be the thing to do (xfce4-terminal ) but I like your idea for when updates come down the pipe
g
@germgerm
Feb 09 13:29
:+1: works good - I just added it to my home/bin changed the emulator to xfce4-terminal and away we go
milleniumbug
@milleniumbug
Feb 09 13:31
yeah, there's a specific format of the xterm command so you can intercept the individual parameters and instead do your own thing
it is possible it may change in the future, but it's probably still easier to fix than in the source
Jo Shields
@directhex
Feb 09 15:16
monodevelop has a bunch of code to detect different desktop environments and assumes the best choice of terminal from that. it's in https://github.com/mono/monodevelop/blob/master/main/src/addins/GnomePlatform/GnomePlatform.cs
there's no standardization for the command-line args needed for these terminals, so there's no generic way to do it & allow the user to just set a terminal command - each term needs special-casing
milleniumbug
@milleniumbug
Feb 09 23:01
oh yeah, I was running i3 and I'm assuming MonoDevelop has picked xterm as a fallback
(didn't even have it installed, but ironically I did have gnome-terminal installed because I haven't removed GNOME)
Since autodetection can fail, would it be possible to have a "autodetect, gnome-terminal, konsole, urxvt, xterm" terminal picker?