John Waggenspack <[EMAIL PROTECTED]> typed:
:xterm and rxvt are still acting differently.
:rxvt -name NAME -title TITLE -e csh -f
:WM_ICON_NAME(STRING) = "csh"
:WM_NAME(STRING) = "TITLE"
:xterm -name NAME -title TITLE -e csh -f
:WM_ICON_NAME(STRING) = "TITLE"
:WM_NAME(STRING) = "TITLE"
Thanks, this is a patch for 2.6.3 If you applied the last (similar) patch
to 2.6.3 you'll need to unapply it for this to apply cleanly.
A diff for the main trunk is in anonCVS: src/init.c:1.51->1.52
Regards,
Geoff
Index: main.c
===================================================================
RCS file: /cvsroot/rxvt/rxvt/src/main.c,v
retrieving revision 1.66.2.11
retrieving revision 1.66.2.12
diff -u -r1.66.2.11 -r1.66.2.12
--- main.c 2000/06/04 06:47:32 1.66.2.11
+++ main.c 2000/10/28 05:44:28 1.66.2.12
@@ -1141,8 +1141,6 @@
rs[i] = NULL;
rs[Rs_name] = my_basename(argv[0]);
- if (cmd_argv != NULL && cmd_argv[0] != NULL)
- rs[Rs_iconName] = rs[Rs_title] = my_basename(cmd_argv[0]);
/*
* Open display, get options/resources and create the window
*/
@@ -1176,10 +1174,17 @@
/*
* set any defaults not already set
*/
- if (!rs[Rs_title])
- rs[Rs_title] = rs[Rs_name];
- if (!rs[Rs_iconName])
- rs[Rs_iconName] = rs[Rs_title];
+ if (cmd_argv && cmd_argv[0]) {
+ if (!rs[Rs_title])
+ rs[Rs_title] = my_basename(cmd_argv[0]);
+ if (!rs[Rs_iconName])
+ rs[Rs_iconName] = rs[Rs_title];
+ } else {
+ if (!rs[Rs_title])
+ rs[Rs_title] = rs[Rs_name];
+ if (!rs[Rs_iconName])
+ rs[Rs_iconName] = rs[Rs_name];
+ }
if (!rs[Rs_saveLines] || (TermWin.saveLines = atoi(rs[Rs_saveLines])) < 0)
TermWin.saveLines = SAVELINES;