icon-detect

command module
v0.0.0-...-63d3424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

icon-detect

Icon-detect detects the order of the icon-overlay of Windows, and performs auto-adjustment.

Background

Windows supports icon-overlay for files and folders. But Windows also has a limited number for icon-overlay, so the order of icon-overlay is important. It's called 'icon-overlay battle'.

Find more in List of shell icon overlay identifiers from Wikipedia. It also lists the icon of popular software.

Usage

  1. (FIXME) Change BOOST list in main.go to the software you want to adjust.

  2. Build the binary.

        PS > go build .
    

    OR (to hide cmd windows):

        PS > go build -ldflags -H=windowsgui .
    

    ⚠️-H=windowsgui will also silence the stdout and stderr. e.g, -h and -v will not have any output.

  3. Run it

    • ⚠️icon-detect need to be run as administrator, as it need to access the registry. See UAC for more information.

    • icon-detect will output log file (with rotation) under the execute directory.

    • -b to backup the registry before auto-adjustment.

UAC

Windows has a UAC (User Account Control) mechanism. You can build icon-detect try to detect if UAC is enabled, and if it is, it will prompt a UAC dialog to ask for administrator permission.

    PS > \path\to\mt.exe -manifest app.manifest -outputresource:icon-detect.exe;1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL