<@U01H2JMLFLL>, xschem creates its own icon (a very simple one) by setting a window manager hint, us...
s
@User, xschem creates its own icon (a very simple one) by setting a window manager hint, using the XSetWMHints() call. This should work on all EWMH compliant window managers. This gives xschem an icon when iconified "a-la-old-school" on the desktop area or docked into a taskbar. But may be modern Desktop Environments (Gnome, Kde) use a more convoluted system to get icons for applications, this usually involves creating a
.desktop
file for the application (so you can start it by the desktop entry menu, among other nice things). You can even create a MIME type for xschem .
sym
and
.sch
files so they will be handled by xschem when clicked. You can take a look to some .desktop files for popular applications in
/usr/share/applications
and create one for xschem (at system level ) or copy one in your
~/.local/share/applications
folder and make the necessary changes, so it will be effective for you only. This is how it worked some years ago, may be they have once again changed everything since then, and i do no more use a desktop environment, so i can not be very up to date on this. Xschem's own icon is burned into the executable so it does not depend on external files, however if you go in xschems
src/
directory you will find a file called
icon.c
. I have now put the XPM header into it so it can be opened directly with an image viewer.
t
Thank you, @User! I will give that a try and see if I can get it to work.