wslg
wslg copied to clipboard
No start menu entry for flatpaks
Version
Windows Version: 10.0.22621.1105
WSL Version
- [X] WSL 2
- [ ] WSL 1
Kernel Version
5.15.79.1
Distro Version
Ubuntu 22.04.1
Other Software
Flatpak 1.12.7
Repro Steps
Install any flatpak application
Expected Behavior
Software installed via apt automatically shows up in the Windows start menut, because WSL reads all the .desktop files in /usr/share/applications/. Flatpaks should do the same
Actual Behavior
They don't automatically appear and can only be launched via flatpak run
Diagnostic Logs
The desktop files for the flatpak applications are stored in e.g. /var/lib/flatpak/exports/share/applications/. Symlinking the individual files into /usr/share/applications/ solves the problem and the applications appear in the windows start menu
https://github.com/microsoft/wslg/releases/tag/v1.0.50 states that it remediates this.
I was wondering about this, too. At the moment I have flatpak set up to install to user ($HOME/.var/ ...) instead of system (/var ...) and the code only seems to pick up system installed flatpaks.
Related #12375