Program icon

477 views
Skip to first unread message

Milos Paripovic

unread,
Apr 8, 2023, 12:50:31 AM4/8/23
to OneCommander
While I like the new icon, in case someone wants to change it to one of the other proposed variations (or something else):
in 3.40
\Settings\OneCommanderV3.json 
has key value for
CustomIconPath
if someone wants to put path to the custom program icon
(program has to be completely closed when editing this file)

The additional icons from the voting in the previous months are placed in 
\Resources\ProgramIconsInstall

The icon will show ONLY when program is running and IN TASKBAR (not program title bar). 

If you want to set it also for program icon on desktop, you have to do it from the icon properties and manually assigning program icon.

For pinned icon when program is not open, it is more complicated. 

Additional Experimental (abandoned and messy) workflow:
Warning, following can mess up OC icon and reinstall won't help as Windows caches program icons 
in 3.41 I'll also add command line switch 
onecommander.exe -fixtaskbaricons 
that should reset those

DisableTaskbarGrouping 
is also in the settings file, BUT this has been abandoned as this property store in Windows is buggy, but if someone really wants to experiment with it, this can be switched to True
If that is enabled and program is restarted 
\Resources\ProgramIconsInstall
should become
\Resources\ProgramIcons
In that mode each named window can have its own icon
so if you have a window named "Work" you can put any .ico file in 
\Resources\ProgramIcons
and name it "Work.ico" and program should load it when that window is opened.

Now, since that property store in Windows is buggy it may not update icon, and may work for new named windows only. That -fixtaskbaricons switch should fix those in 3.41, but with Windows it is not sure.

Be warned that this is obsolete function and this part won't be further improved as I can't justify additional time investment. 

This is all because Windows has only one main program icon that cannot be changed officially, everything else would be improvisation.

Changing main program icon is not worth the trouble but there it is


Haakon Storm Heen

unread,
Sep 26, 2023, 12:46:51 PM9/26/23
to OneCommander
Just wanted to add here the alternative and simple way to create an alternative icon.
Using Explorer, right click and create a shortcut (.lnk) file to onecommander.exe.
Right click your shortcut, and you can now change the icon to your custom icon.
The new shortcut .lnk can be dragged to the bottom Taskbar.

2023-09-26_18-46.png

OneCommander Support

unread,
Sep 26, 2023, 8:30:31 PM9/26/23
to OneCommander
Good point Haakon. Just to mention that the icon will show until the program is started, the the exe icon will shown and the first step from above has to be completed.

Two IMPORTANT things I forgot to mention:
1. Make a backup of OneCommanderV3.json before making ANY changes!
2. Path to icon file MUST have "escaped" backslash characters 
(meaning each \ in path MUST be \\ ) 
so 
C:\Programs\OneCommander\NewIcon.png
must be
C:\\Programs\\OneCommander\\NewIcon.png
or the settings file will be corrupted 

Stuart Feldman

unread,
Sep 26, 2023, 8:42:49 PM9/26/23
to OneCommander
Thanks, I was missing the \\. That fixed it!

Stuart Feldman

unread,
Sep 26, 2023, 9:30:48 PM9/26/23
to OneCommander
Next issue (and thanks for your patience)...

When the program is closed, the icon is full size, as are other icons. See "before". When OC is open, the icon shrinks, whereas most other icons remain full size. See "after".

How do I get it to remain full size when open?
after.JPG
before.JPG

OneCommander Support

unread,
Sep 27, 2023, 6:36:16 PM9/27/23
to OneCommander
Did you put path to png file or ico in the settings path? Try png. I didn't check, but in general, ico file should contain all standard resolutions, so Windows will load the one that it needs for particular display scale, and png must be 96dpi, then better to lower resolution as 2000x2000 icon will take 16MB or RAM and VRAM when cached.

Stuart Feldman

unread,
Sep 27, 2023, 6:51:23 PM9/27/23
to OneCommander
Bingo! I had used ICO. Changing it to PNG fixed it. I have 64GB of RAM, not worried about cache size.

Thank you!!

PS: Personal comment: yes, the orange OC is kinda garish, but it really stands out. And that works for me. YMMV.

Reply all
Reply to author
Forward
0 new messages