microsoft / wslg

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

Configure where the Weston plugin looks for GUI apps (*.desktop files) #937

Open mhlr opened 1 year ago

mhlr commented 1 year ago

Is your feature request related to a problem:

A number of tools have their own package ecosystem and may install *.desktop files in alternative locations =, eg conda, R, Guix, ... The Weston plugin only looks in /usr/share/applications and does not pick up apps from these locations. To have WSLg recognise these apps the deskop files must be copied to and kept up to date in /usr/share/applications.

Describe the solution you'd like:

A way (eg config file) to specify the list of directories searched for *.desktop files.

Describe alternatives you've considered:

Additional context:

No response

hideyukn88 commented 1 year ago

This is now supported by WSL version 1.1.2 (https://github.com/microsoft/WSL/releases/tag/1.1.2) by configuring .wslgconfig, like below, thanks!

C:\Users\[Your User Name]\.wslgconfig

[system-distro-env]
WESTON_RDPRAIL_SHELL_APP_LIST_PATH=/home/foo/.local/share/applications:/opt/another/path1:/opt/another/path2