diff --git a/scripts/rclone.sh b/scripts/rclone.sh index a3a3255..bc930fb 100755 --- a/scripts/rclone.sh +++ b/scripts/rclone.sh @@ -10,6 +10,11 @@ rclone sync ~/.bash_history onedrive:AppData/WSL/ rclone sync ~/.local/share/mcfly/history.db \ onedrive:AppData/WSL/.local/share/mcfly +# Backup custom Desktop-entries +rclone sync ~/.local/share/applications \ + onedrive:AppData/WSL/.local/share/applications --max-depth 1 \ + --include "/*.desktop" + # Backup (personal) Git configuration rclone sync ~/ onedrive:AppData/WSL/ --max-depth 1 --skip-links \ --include "/.gitconfig*" diff --git a/static/windows/.wslgconfig b/static/windows/.wslgconfig new file mode 100644 index 0000000..2bdb495 --- /dev/null +++ b/static/windows/.wslgconfig @@ -0,0 +1,2 @@ +[system-distro-env] +WESTON_RDPRAIL_SHELL_APP_LIST_PATH=/home/thijs/.local/share/applications diff --git a/static/windows/README.md b/static/windows/README.md index 9d49aaf..e80b7c5 100644 --- a/static/windows/README.md +++ b/static/windows/README.md @@ -2,6 +2,7 @@ - [`.wslconfig`](#wslconfig) - [Caveats](#caveats) +- [`.wslgconfig`](#wslgconfig) - [SSH](#ssh) - [ProxyJump](#proxyjump) - [Move WSL2's VHDX-files](#move-wsl2s-vhdx-files) @@ -71,6 +72,24 @@ ConditionVirtualization= ConditionVirtualization=wsl ``` +## `.wslgconfig` + +WSLg automatically creates application shortcuts in Windows' Start Menu based +upon `.desktop`-files. By default, it looks for these files in system-wide +locations (e.g. `/usr/share/applications`, and +`/var/lib/snapd/desktop/applications` for snaps). + +The updated +[WSLg configuration](https://github.com/microsoft/wslg/issues/937#issuecomment-1421200151) +makes it also look in `~/.local/share/applications/`. Files there get priority +over the system-wide definitions. + +To modify to a `.desktop`-entry, copy it into the user-specific location and +make changes there. To stop WSLg from creating a shortcut, add `NoDisplay=true` +to the file in question. + +Changes (appear) to be picked up almost immediately by WSLg/Windows... + ## SSH Install [OpenSSH for Windows32](https://github.com/powershell/Win32-OpenSSH):