microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

Per-Distro WSL2 Overlay Icon Customization #1237

Open heamaral opened 2 months ago

heamaral commented 2 months ago

Is your feature request related to a problem:

No response

Describe the solution you'd like:

Overview The WSLg repository currently lacks a feature for users to customize overlay icons for each WSL2 distribution, making it challenging to differentiate between shortcuts from different distributions. This feature suggestion aims to address this issue by allowing users to specify a directory containing custom overlay icons named after each WSL2 distribution.

Proposed Solution

  1. Introduce a new configuration option: WSL2_DEFAULT_APP_OVERLAY_ICON_DIRECTORY.
  2. Users can set this configuration option to point to a directory containing custom overlay icons for each WSL2 distribution.
  3. Inside the specified directory, users can place icons named after their respective distributions (e.g., Ubuntu-22.04.ico, etc.).
  4. When creating shortcuts or icons for applications within a specific WSL2 distribution, WSLg will use the custom overlay icon associated with that distribution, if available.

Example Configuration WSL2_DEFAULT_APP_OVERLAY_ICON_DIRECTORY=/mnt/c/custom-wsl-icons

Directory Structure

/mnt/c/custom-wsl-icons/
     Ubuntu-22.04.ico

Benefits

Implementation Considerations

Additional Notes

Describe alternatives you've considered:

Text Labels on Icons Instead of using different icons, add a small text label or abbreviation of the distro name on the existing WSL2 icon. For example, "UB" for Ubuntu or "DE" for Debian could appear on the corner of the icon.

Pros:

Cons:

Each of these alternatives provides a unique approach to solving the problem of differentiating between WSL2 distribution shortcuts. However, they also come with their own set of trade-offs in terms of customization, implementation complexity, and user experience. The original suggestion of allowing users to customize icons per distro offers the most flexibility and personalization, albeit at the cost of increased user involvement in configuration.

Additional context:

No response