github JackTulli/Linux-explorer v1.43.0
1.43.0: shortcuts wear their program's icon, and keep the name you give them

latest release: v1.43.1
2 hours ago

New

  • A shortcut wears its program's icon. A shortcut to a Windows program showed the same blank window as everything else, because it only ever took an icon when its Icon line named one the shell already had -- and nothing that makes a shortcut writes that line. A shortcut now takes the icon of whatever it opens, on the desktop and in Explorer alike.

  • The icon is read out of the program itself. That extraction needed icoutils, and on a machine without it every Windows program fell back to the blank icon -- which is how this was found. The shell now reads the icon out of the .exe: the resource tree of the PE file, the image nearest 32 pixels, written out as a one-image .ico. Every read is checked against the length of the file first, since this is a program someone downloaded; a file with no icon, or one that is not a program at all, simply gives nothing back. wrestool is asked only for what this cannot read.

  • Change Icon... Properties, on a shortcut, now has it: pick a picture, or a Windows program to take an icon out of, as you can in Windows. The sheet also calls the file a Shortcut and shows its Target, the way the Shortcut tab does there.

  • A renamed shortcut keeps its new name. What a shortcut is called lives inside it, so renaming the file left the name on screen exactly as it was -- typing a new one appeared to do nothing at all. F2 on the desktop and the name box in Properties now write the name inside the shortcut, and let the file follow it.

Two calls in the toolkit do the work and are there for anything else that needs them: w2k_desktop_set writes one key of a desktop entry and keeps the rest of the file, and w2k_desktop_target reads out what a shortcut opens.

curl -fsSL https://jacktulli.github.io/w2k | sh

Don't miss a new Linux-explorer release

NewReleases is sending notifications on new releases.