Page 1 of 2
Custom app icon
Posted: 28 Jul 2013 14:18
by Marco
I wonder if it is possible to launch XY specifying (for example in the calling command line) a custom icon.
An example of usage would be the following: user under a limited account (me), keeping always two instances of XY, one limited and the other elevated. Both shown in the tray too. A different icon for each other would make very easy to distinguish them (I already applied a custom titlebar template, btw).
Dexpot (another portable gem) allows using custom icons in tray and taskbar. Everything (the MFT search engine) allowed this, not sure if it still does.
Any opinions?
Re: Custom app icon
Posted: 28 Jul 2013 14:38
by admin
You know you can set the icon via INI: IconFile=... ?
Re: Custom app icon
Posted: 28 Jul 2013 17:51
by Marco
Oops, shame on me
I did scan the ini twice for keys containing the word "icon", and yet IconFile managed to be invisible at my eyes. Thank you.
Re: Custom app icon
Posted: 28 Jul 2013 19:43
by Nighted
I was intrigued by this tweak, so I decided to test it out. I am surprised to discover that the full path to the icon must be entered, so not portable.

Re: Custom app icon
Posted: 28 Jul 2013 19:56
by Marco
Nighted wrote:I was intrigued by this tweak, so I decided to test it out. I am surprised to discover that the full path to the icon must be entered, so not portable.

Had the same problem. Then I found that Data\icons\icon.ico works fine. But <xyicons> isn't processed, probably because variables are not available at that time during startup.
Re: Custom app icon
Posted: 28 Jul 2013 20:00
by admin
No, I think that should be possible to add. Let me try...
Re: Custom app icon
Posted: 28 Jul 2013 20:33
by Nighted
Marco wrote:Had the same problem. Then I found that Data\icons\icon.ico works fine. But <xyicons> isn't processed, probably because variables are not available at that time during startup.
That is true. I was using the same short path for my catalog/toolbar icons before <xypath> and <xyicons> got implemented.
Re: Custom app icon
Posted: 28 Jul 2013 20:39
by admin
Currently it is relative to app path. Next version you can use XY Variables (e.g. <xyicons>) and Environment Variables.

Re: Custom app icon
Posted: 28 Jul 2013 23:28
by Enternal
What?! You can set up custom icon for the main program?! I scan through it many times before and like Marco, miss it. Anyways looking forward to the next version where you can use variables.
Anyway this is so neat. Currently setting the icon to an Apple. Yeah yeah, I know an Apple has nothing to do with XYplorer but it looks neat.
APPLE.jpg
You have to admit, it's pretty cute.
Re: Custom app icon
Posted: 28 Jul 2013 23:38
by Marco
I've set IronMan, currently.
Re: Custom app icon
Posted: 28 Jul 2013 23:40
by Enternal
Hahaha Don would definitely like that more than mine. I don't think he would like a cutesy apple representing his program. Iron Man on the other hand...
Re: Custom app icon
Posted: 29 Jul 2013 00:06
by Nighted
HAL 9000

Re: Custom app icon
Posted: 29 Jul 2013 08:44
by Marco
Nighted wrote:HAL 9000

Be careful, it might lock you out of your computer

Re: Custom app icon
Posted: 29 Jul 2013 09:28
by admin
CI-wise I made a bad mistake here. I would rather see the icon continue to represent the
gods of exploration. But, if you want to know, I like the apple best.

Re: Custom app icon
Posted: 29 Jul 2013 10:31
by Marco
So the original icon is confirmed to be an oriental ideogram? I guess most people outside far east Asia don't know or even suspect it...
Anyway, will IconFile also support syntax like <get username> and/or <get userrole> in the path?