Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321673 - x11-wm/ratpoison ebuild doesn't set xterm
Summary: x11-wm/ratpoison ebuild doesn't set xterm
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Desktop WM Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 11:13 UTC by JusSx
Modified: 2010-05-30 18:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ratpoison-1.4.5.ebuild patch that uses value of RATPOISON_TERM eviroment variable (ratpoison-1.4.5.ebuild.patch,115 bytes, patch)
2010-05-27 11:17 UTC, JusSx
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JusSx 2010-05-27 11:13:14 UTC
ratpoison configure options let user set x terminal to use. if --with-xterm configure option is not set, configure script will use "xterm" as default x terminal. ratpoison ebuild ignores --with-xterm configure option, hence gentoo users are constrained to use "xterm". I don't like xterm and I don't want to use it. I like rxvt-unicode and I want to keep using it. I think gentoo users want this kind of freedom.
Comment 1 JusSx 2010-05-27 11:17:40 UTC
Created attachment 233111 [details, diff]
ratpoison-1.4.5.ebuild patch that uses value of RATPOISON_TERM eviroment variable

I coded a patch for ratpoison ebuild script. if RATPOISON_TERM enviroment variable is set, ratpoin ebuild will add --with-xterm=$RATPOISON_TERM to configure option.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-29 16:46:35 UTC
I use ratpoison with urxvt with no problems whatsoever. ratpoison uses TERM_PROG to set default key bindings (in src/actions.c) and nowhere else[1] - you can change default key bindings through ratpoisonrc. I'm inclined to close as WORKSFORME.


[1] It's used in a #define in src/messages.h but never actually used.
Comment 3 JusSx 2010-05-30 18:21:18 UTC
(In reply to comment #2)
> I use ratpoison with urxvt with no problems whatsoever. ratpoison uses
> TERM_PROG to set default key bindings (in src/actions.c) and nowhere else[1] -
> you can change default key bindings through ratpoisonrc. I'm inclined to close
> as WORKSFORME.
> 
> 
> [1] It's used in a #define in src/messages.h but never actually used.
> 
I don't care keybindings. I didn't talk about keybindings. I want use rxvt-unicode because I like it and I know how to configure it. URxvt configure X resouces are almost equal to XTerm configure X resources.

$ grep -i term_prog src/*
/tmp/ratpoison-1.4.5/src/actions.c:  add_keybinding (XK_c, 0, "exec " TERM_PROG, map);
/tmp/ratpoison-1.4.5/src/actions.c:  add_keybinding (XK_c, RP_CONTROL_MASK, "exec " TERM_PROG, map);
/tmp/ratpoison-1.4.5/src/actions.c:  add_keybinding (XK_exclam, RP_CONTROL_MASK, "colon exec " TERM_PROG " -e ", map);
/tmp/ratpoison-1.4.5/src/config.h.in:#undef TERM_PROG
/tmp/ratpoison-1.4.5/src/messages.h:#define MESSAGE_PROMPT_XTERM_COMMAND    MESSAGE_PROMPT_SHELL_COMMAND TERM_PROG " -e "

I want to be free to choose X terminal I want not for its keybindings features but for its features


Comment 4 JusSx 2010-05-30 18:24:32 UTC
I don't use URxvt because its keybinding features.  I use Urxvt for its features. (transparent background for example).
Patch is 3 lines of code and give gentoo users freedom to choose which X terminal to use.  
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-05-30 18:53:20 UTC
(In reply to comment #0)
> ratpoison configure options let user set x terminal to use. if --with-xterm
> configure option is not set, configure script will use "xterm" as default x
> terminal. ratpoison ebuild ignores --with-xterm configure option, hence gentoo
> users are constrained to use "xterm". I don't like xterm and I don't want to
> use it. I like rxvt-unicode and I want to keep using it. I think gentoo users
> want this kind of freedom.

Nobody forces you to use xterm, you can use urxvt if you want. Please read How to change default terminal[1] in ratpoison. Jer meant ratpoison keybindigs not terminal keybindings.
Best regards,
Kacper Kowalik

[1] http://ratpoison.antidesktop.net/wiki/ChangeDefaultTerminal