Я розповім про xtermце: це старе програмне забезпечення і значна частина його термінології вже застаріла. У man xtermньому сказано:
iconName (class IconName)
Specifies a label for xterm when
iconified. Xterm provides no default value; some
window managers may assume the application name, e.g.,
"xterm"
Setting the iconName resource sets the icon label
unless overridden by zIconBeep or the control sequences
which change the window and icon labels.
Це означає, що iconNameне повинно бути зображення піктограми, це лише мітка, яка надається xtermвікну, коли воно іконіфіковане. Його також можна встановити за допомогою -nпараметра:
-n string
This option specifies the icon name for xterm's windows. It
is shorthand for specifying the "iconName" resource. Note
that this is not the same as the toolkit option -name (see
below). The default icon name is the application name.
Починаючи xtermтак, з a title! = iconNameЯ все ще не бачу, що ICONрядок відображається після віконця, що ініціює xterm(Alt-F9 in fluxbox):
$ xterm -n ICON -T a-new-title
Копаючи далі через xtermmanpage, можна знайти ( **шахту):
activeIcon (class ActiveIcon)
Specifies whether or not active
icon windows are to be used when the xterm window is
iconified, if this feature is compiled into xterm. The
active icon is a miniature representation of the
content of the window and will update as the content
changes. Not all window managers necessarily support
application icon windows. Some window managers will
allow you to enter keystrokes into the active icon
window. The default is "default".
Xterm accepts either a keyword (ignoring case) or the
number shown in parentheses:
false (0)
No active icon is shown.
true (1)
The active icon is shown. If you are using
twm, use this setting to enable active-icons.
default (2)
Xterm checks at startup, and shows an
active icon only for window managers which it
can identify and which are known to support the
feature. **These are fvwm (full support), and
window maker (limited).** A few other windows
managers (such as twm and ctwm) support active
icons, but do not support the exten- sions which
allow xterm to identify the window manager.
activeIconнапевно, безпосередньо не пов’язано з iconNameфункцією, однак це дає нам зрозуміти, що функції, що стосуються значків, xtermпрацюють правильно лише з деякими менеджерами вікон. Я рекомендую Xephyrпротестувати один fvwmабо window makerяк зазначено на сторінці сторінки:
$ Xephyr :1 -ac -screen 800x600
і в іншому терміналі:
$ DISPLAY=:1 wmaker
Тепер почнемо xtermвсередині window maker: клацніть правою кнопкою миші -> Applications-> Terminals-> xterm. Почніть xtermз -nопції ще раз:
$ xterm -n ICON -T a-new-title
Клацніть правою кнопкою миші на заголовку і виберіть Miniaturize. Тепер ви можете бачити, що xtermзначок насправді позначений етикеткою ICON. Поверніть його, натиснувши на нього, і побачите, що це заголовок a-new-title. Висновок полягає в тому, що iconNameфункція працює лише з деякими менеджерами вікон, швидше за все, старшими. Якщо ви відчуваєте себе сильними, можете переглядати window makerвихідний код і виправити власний менеджер вікон, якщо він не підтримує iconName.
До речі, про зміну xtermзображення піктограми див. На веб-сторінці : /superuser/344320/how-do-i-change-the-icon-of-an-xterm .