suzdraws / mintty

Automatically exported from code.google.com/p/mintty
0 stars 0 forks source link

Ability to specify icon via command line #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Similar to the --title option, it would be nice to be able to specify an
icon (perhaps with --icon as the option?) for the mintty session.

Original issue reported on code.google.com by ir0nh...@gmail.com on 3 Jul 2009 at 6:42

GoogleCodeExporter commented 9 years ago
If you happen to know how to load an icon and stick it on a window, I'd 
appreciate
some sample code.

Original comment by andy.koppe on 3 Jul 2009 at 8:30

GoogleCodeExporter commented 9 years ago
How about a patch instead of some sample code?  ;)

Original comment by ir0nh...@gmail.com on 4 Jul 2009 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago
I should have provided more detail about the patch:

- I added the --icon/-i option to specify an icon
- the specified icon is in *nix path format (i.e. /path/to/icon.ico)
- using cygwin_conv_path it converts it to Windows path format in order to use 
LoadImage
- my vimrc formats code to the GNU standard, hence the additional changes in 
the file
(if this is an issue, I can generate a new patch)

Original comment by ir0nh...@gmail.com on 4 Jul 2009 at 3:43

GoogleCodeExporter commented 9 years ago
... and the patch was generated off the branches/0.4 branch.

Original comment by ir0nh...@gmail.com on 4 Jul 2009 at 3:45

GoogleCodeExporter commented 9 years ago
Thanks Chris, that made it a doddle. Implemented in r411 on 0.4 branch.

I considered adding a control sequence for this as well, but decided not to, 
for the
following reasons:
- It doesn't make much sense remotely.
- There's no good way to provide error messages.
- It's a security risk. At least it could be used to clobber file access times, 
but
enterprising souls might find other ways to do harm through this.

Original comment by andy.koppe on 4 Jul 2009 at 10:04

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 12 Jul 2009 at 9:20