ฉันจะพูดถึง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เช่นนี้ด้วยtitle! = iconNameฉันยังไม่เห็นICONสตริงที่แสดงหลังจากxtermหน้าต่างเป็นไอคอน(Alt-F9 ใน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ตามที่ระบุไว้ใน manpage:
$ 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 makericonName
BTW, สำหรับการเปลี่ยนxtermไอคอนภาพเห็นนี้: /superuser/344320/how-do-i-change-the-icon-of-an-xterm