You are not logged in.

#1 2015-02-26 14:34:26

sfantu
Member
Registered: 2015-02-26
Posts: 8

Apps in ranger always open in xterm

It just doesn't matter which terminal emulator i use the output of "echo $TERM" is always Xterm ...

Could anyone enlighten me on why this happens and how i might be able to fix?

Thank you.

Last edited by jasonwryan (2015-02-26 18:36:26)

Offline

#2 2015-02-26 14:55:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,587

Re: Apps in ranger always open in xterm

You don't fix it. This is set by the emulator, and most of them choose to set xterm for compatibility.

Offline

#3 2015-02-26 15:34:01

sfantu
Member
Registered: 2015-02-26
Posts: 8

Re: Apps in ranger always open in xterm

Ok.

This results in a bad behavior in ranger file manager which opens an xterm terminal instead of one i'm using (terminator) seems this can't be fixed .

Thank you

Offline

#4 2015-02-26 15:42:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,544
Website

Re: Apps in ranger always open in xterm

Er ... that's a big leap.  Please describe the *actual* problem you are having in your first posts and you will much likely get better results (and not end up posting XY problems).  You should not change the TERM environment variable - but there are several ways that you can change what ranger launches: the simplest would be by setting a TERMCMD environment variable.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-02-26 16:19:13

Awebb
Member
Registered: 2010-05-06
Posts: 6,298

Re: Apps in ranger always open in xterm

man ranger <enter> /TERM<enter>
man rifle <enter> /TERM<enter>

Offline

#6 2015-02-26 17:01:43

sfantu
Member
Registered: 2015-02-26
Posts: 8

Re: Apps in ranger always open in xterm

Thank you for your replies.

So I have fish shell set as my default shell . I've managed to set the $TERMCMD to terminator but the behavior is still the same.

Offline

#7 2015-02-26 17:20:03

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Apps in ranger always open in xterm

@sfantu, please clarify what you are doing and what the issue is.  I still don't get it?  Are you running ranger in terminator but when you open a file to edit (e.x. in vim), it opens another window with xterm?  Or are you trying to start ranger in terminator?

Offline

#8 2015-02-26 18:08:21

sfantu
Member
Registered: 2015-02-26
Posts: 8

Re: Apps in ranger always open in xterm

Yes i run terminator ... then i start ranger from terminator then when i open a file to edit in vim a new window open with xterm.

if i don't set the t flag ... then it opens in the same window . but with the flag i get the behavior above.

Offline

#9 2015-02-26 19:10:53

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Apps in ranger always open in xterm

Did you try setting the $TERMCMD  in your fish environment?  I know you tried setting it but it sounds like you set it in the wrong place.

For zsh we would do export TERMCMD="/usr/bin/termite"  in zshenv.  Not sure about fish.

Last edited by frank604 (2015-02-26 19:11:50)

Offline

#10 2015-02-26 22:36:53

sfantu
Member
Registered: 2015-02-26
Posts: 8

Re: Apps in ranger always open in xterm

Yes it is set up from fish`s config, before the echo $TERMCMD would return blank now it outputs terminator ... but still i get the same behavior .

Which other place could i set it up from?

Last edited by sfantu (2015-02-26 23:14:41)

Offline

#11 2015-02-27 01:26:00

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Apps in ranger always open in xterm

So what is defined in ~/.config/ranger/*.conf files?
My guess is that xterm is being called from there somewhere.


Knute

Offline

#12 2015-02-27 01:57:15

sfantu
Member
Registered: 2015-02-26
Posts: 8

Re: Apps in ranger always open in xterm

this is all there is in rc.conf

set show_hidden true
set preview_images true

and rifle.conf has no mention of xterm .

Offline

Board footer

Powered by FluxBB