Saya akan bicarakan di xtermsini: ini adalah perangkat lunak lama dan banyak terminologinya sudah ketinggalan zaman. Di man xtermdalamnya tertulis:
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.
Itu berarti bahwa itu iconNametidak boleh menjadi gambar ikon, itu hanya label yang diberikan ke xtermjendela ketika itu ikon . Dapat juga diatur menggunakan -nopsi:
-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.
Setelah memulai xtermseperti ini, dengan title! = iconNameSaya masih tidak dapat melihat ICONstring ditampilkan setelah xtermjendela ikonisasi (Alt-F9 in fluxbox):
$ xterm -n ICON -T a-new-title
Menggali lebih jauh melalui xtermhalaman manual yang ditemukan ( **milikku):
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.
activeIconmungkin tidak terkait langsung dengan iconNamefitur, namun memberi kita petunjuk bahwa fitur terkait ikon xtermbekerja dengan benar hanya dengan beberapa pengelola jendela. Saya merekomendasikan Xephyruntuk menguji satu fvwmatau window makerseperti yang ditentukan dalam halaman manual:
$ Xephyr :1 -ac -screen 800x600
dan di terminal lain:
$ DISPLAY=:1 wmaker
Sekarang mari kita mulai xtermdi dalam window maker: klik kanan -> Applications-> Terminals-> xterm. Mulai xtermdengan -nopsi lagi:
$ xterm -n ICON -T a-new-title
Klik kanan pada bilah judul dan pilih Miniaturize. Sekarang Anda dapat melihat bahwa xtermikon sebenarnya diberi label ICON. Bawa kembali dengan mengkliknya dan lihat bahwa batang judul itu a-new-title. Kesimpulannya adalah bahwa iconNamefitur hanya bekerja dengan beberapa manajer jendela, kemungkinan besar yang lebih tua. Jika Anda merasa kuat, Anda dapat menelusuri window makerkode sumber dan menambal window manager Anda sendiri jika tidak mendukung iconName.
BTW, untuk mengubah xtermgambar ikon lihat ini: /superuser/344320/how-do-i-change-the-icon-of-an-xterm .