Can I change the windows icon from command line?

Andrey Repin anrdaemon@yandex.ru
Thu Nov 2 10:20:00 GMT 2017


Greetings, Thomas Wolff!

> I referred to changing the icon label (an existing sequence supported by
> xterm), i.e. the text shown in the taskbar, which cannot be changed in 
> Windows as far as I know as it's always the same as the window title.

Two thoughts on this:

1. The taskbar button title is not necessarily the same as [visible]
application window title.
One of the cleanest solutions is to create a frameless main window and embed
your actual application window inside it. Downside is that the visible
application window titlebar may not look right.
Another solution is to create two windows, one only shown in taskbar, one is
an actual app window, and repost all messages from taskbar to the application
window. Downside is that not all shell features may work properly, such as
minimize-restore on repeated clicks.
In support of this feature, I can say that I have restricted space for taskbar
labels myself (approx 10 symbols) and have to be creative with window titles
from various sources to clearly identify the windows.
That including dances with /etc/debian_chroot and manual PROMPT_COMMAND settings.

2. Since there's no direct solution for setting window icon, an existing
sequence could be reused for our purpose, since there's no clean way to make
it work straight. Or a new sequence could be invented.


-- 
With best regards,
Andrey Repin
Thursday, November 2, 2017 12:58:42

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list