Custom app icon

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Custom app icon

Post 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?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67212
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom app icon

Post by admin »

You know you can set the icon via INI: IconFile=... ?

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom app icon

Post by Marco »

Oops, shame on me :oops:
I did scan the ini twice for keys containing the word "icon", and yet IconFile managed to be invisible at my eyes. Thank you.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: Custom app icon

Post 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. :naughty:
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom app icon

Post 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. :naughty:
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.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67212
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom app icon

Post by admin »

No, I think that should be possible to add. Let me try...

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: Custom app icon

Post 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.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

admin
Site Admin
Posts: 67212
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom app icon

Post by admin »

Currently it is relative to app path. Next version you can use XY Variables (e.g. <xyicons>) and Environment Variables. :)

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Custom app icon

Post 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.
To see the attached files, you need to log into the forum.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom app icon

Post by Marco »

I've set IronMan, currently.
To see the attached files, you need to log into the forum.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Custom app icon

Post 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...

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: Custom app icon

Post by Nighted »

HAL 9000 :biggrin:
To see the attached files, you need to log into the forum.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom app icon

Post by Marco »

Nighted wrote:HAL 9000 :biggrin:
Be careful, it might lock you out of your computer :P :mrgreen:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67212
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom app icon

Post 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. :)

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Custom app icon

Post 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?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Post Reply