-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux GUI apps not showing up in Start Menu #45
Comments
@cerebrate , thanks for reporting, from the provided log, it's failing to add watch to /usr/local/share/applications with permission denied (while /usr/share/applications was succeeded), can you check the permission on /usr/local/share/applications ? thanks! [11:33:44.808] app_list_monitor_thread: inotify_add_watch(/usr/share/applications) |
Aha! Yes, that seems to have been the issue. Permissions on /usr/local/share/applications had no "other" permissions, only user and group. Adding "o+rx" made the shortcuts appear. |
@cerebrate , I'm curious how common those folders don't have "other" permission ? Is this something you have done for some reason ? or the distro you installed is pre-configured in that way ? (but at least it looks Ubuntu 20.04 doesn't come with that). |
Looking at my test Ubuntu 20.04 distribution, it doesn't appear to come with a /usr/local/share/applications folder at all; same goes for my Alpine. I don't think it's anything I've done intentionally, at least with regard to that folder in particular. Not being sure precisely where and when that folder was created, I suppose it's possible that it might be related to my running with umask 007 (set in my .zprofile), a habit originally from shared Unix systems that I've kept up for years, maybe? |
I'm having the same issue. From my weston.log file, I can see that it can't find /usr/local/share/applications. But I have confirmed that this folder exists, and there are several .desktop folders inside it. The folder also has rx permission for others. |
@abhishekchak52, by looking at your weston.log, those .desktop are for either terminal application or has "NoDisplay" property, thus no program links are created, have you tried like "Firefox"? thanks! |
@hideyukn88 Thanks for responding so quickly. Those are not the apps I'm having trouble with. I have emacs installed which has .desktop files in /usr/local/share/applications, but in weston.log, these are the lines I see
I don't understand the second line. Has it found the folder but can't read it? Permissions shouldn't be an issue here. I decided to try copying my emacs.desktop from /usr/local/share/applications to /usr/share/applications but it didn't create an entry. At the bottom of weston.log, I find the following lines:
This is after I installed firefox as you suggested, but nothing popped up for that either. |
@abhishekchak52, I'm not seeing that issue. Would you please update to the latest WSLg? It looks yours is too old version. Thanks!
|
@hideyukn88 Yeah, I think something else might be the issue.
There might be an issue elsewhere because now weston.log says it added an entry, but I still can't see it in Start. Thank you for your help |
@abhishekchak52, it looks you have lifted version of WSL from Store, right? The problem seems below which indicates Emacs is removed from tracking list. Btw, do you see Firefox in the Menu? [18:24:11.960] app list entry updated: Key:emacs, Name:Emacs (Ubuntu) |
@hideyukn88 No I can't see firefox either. Is there any way I can remove WSL completely and then reinstall everything? |
@abhishekchak52, please do below. 0: At cmd.exe, "wsl --shutdown". Then reinstall WSL from Store app. Please let me know how it goes. If problem persist, please share weston.log again, thanks! |
@hideyukn88 I went a bit further and did what you asked + turning off/on the optional feature for WSL, and now it seems to work. Thank you so much for helping me out! |
I'm having the exact same problem, but the solution above doesn't works. WSL logs: I'm using Windows 11 (OS Build 22000.318) and Windows Subsystem for Linux from Microsoft Store. |
I did this and it worked for me:
Caution: I recommend not installing the "Linux Subsystem for Linux Preview" app from the windows store. It will load some |
I had the same issue where weston.log showed that GUI apps were recognized correctly, but they were not reflected in the start menu. Uninstalling the WSL Preview from the Store and using WSL from the Windows feature + Windows Update instead fixed it, so I suppose there might be a bug with the newest WSL version from the Store. |
Same issue here, I found that the shortcuts are successfully created under /usr/share/application, and running them in wsl opens the gui app correctly. However, those shortcuts don't show up in the start menu folder.
Hope this manual solution helps :-). |
For me, the problem is fixed after an update to windows 11 22622.601, new wsl apps show up automaticaly. |
No luck for me, followed every step to the dot.. Just seems apps cannot show up on my system. WSLg is part of the WSL Preview installed via store... no other way to get it! EDIT: Can only add apps manually. wslg is just ignore everything. Log says its working, but its not. Looks like there could be a issue in my logs. EDIT: After looking at the github kernel wsl packages it seems many issues have been fixed in later kernel version which is only available with Insider. My issues may be related to kernel 5.10 wsl where wslg has several big bugs present. Will be trying to update to insider now, if it will let me. My windows version is 22000.978 which is the very latest available to me. No idea how to get this new version everyone is running other then insider, which doesn't work on my PC. Final UPDATE (I hope): So it turns out I had some policy and telemetry services disabled or mis-configured. |
I got the same problem. I have managed to create the shortcuts manually. It is working like a charm :-) |
I'm having the same issue on Windows 22h2 fully updated. Interestingly, I had it working when I did an upgrade install of 22h2 without the most recent updates, but I was having other issues, so I did a clean install of Windows 22h2 and now I am having this issue. I tried using all three methods of installing that I'm aware of, uninstalling it completely in between but nothing helps. I tried setting the permissions for the /usr/share/application folder but that didn't help either. I can get Icons in the start menu by creating shortcuts manually, but the Icons are wrong and some of the apps open a terminal window as well as the app. I don't really know where to find the log files. Any help would be appreciated. |
I was having issues too, until I turned on systemd (e.g. allows snaps to work) If you're using Ubuntu, it does somewhat rely on snaps to install apps. For me, FireFox wasn't getting an app shortcut created, but upon turning on systemd, and installing FireFox again, that app shortcut was showing up. Maybe this is the issue for others? |
In my case, the distro I was using didn't have
|
@Paranoid-Dev, I think that folder should be monitored, please let us know if it still doesn't work, thanks! |
I'm having the same issue here i followed the instruction and it work it show all gui application but when i click the application it won't load/open |
@ctosagme, do you mean none of application showed up in Start Menu start up? We are aware of certain applications, such as sublime text, doesn't startup, but most of application should work, would you please give us a few examples of applications doesn't start up? thanks! |
here's some example some of them open but not the others like firefox, Root Terminal Emulator |
It looks like some editors are using $ ll ~/.local/share/applications/
total 20K
-rwxr--r-- 1 vince vince 407 Nov 22 21:03 jetbrains-fleet-6ec15a84-983d-477a-b83c-bd87d0796ae5.desktop
-rwxr--r-- 1 vince vince 363 Nov 22 21:02 jetbrains-fleet.desktop
-rwxr--r-- 1 vince vince 434 Nov 22 21:09 jetbrains-idea-ce-8f3949b8-85b3-4398-ac33-02f6178eff3f.desktop
-rwxr--r-- 1 vince vince 441 Nov 22 21:01 jetbrains-toolbox.desktop Can it also be monitored or should we ask them to create them at another place ? |
I have that problem on Windows 11 - even though .desktop files are being created under On WSL start I can see that some (two) apps are properly added to shortcuts. In my case these are firefox and audacity. In the
However for a lot of others I have these errors:
WSL version: 2.0.14.0 |
I had Linux GUI apps listed in my start menu, then today I installed 4 new Linux GUI apps, and only one showed up in start menu. Rebooted and then the 4 new ones were in start menu, but some of the originals were missing. Ran 'wsl --update' and it got the newest version (2.0.14) and I rebooted. After reboot, no Linux GUI apps are in the start menu. |
Is there a limit on how many apps the start menu will show? I had 18 Linux GUI apps installed before today, on 3 different Windows 11 systems, and all the apps showed in the start menu. Today I installed 4 more Linux GUI apps on each system, and got: Is there a way to increase the number of Linux GUI apps displayed in the start menu? |
i'm having the same problem as @trueuto here is an example of me renaming a file to coerce it into doing something.
|
@hideyukn88 I have installed emacs from source, which creates a file at /usr/local/share/applications/emacs.desktop. This doesn't show up in the Windows start menu. As soon as I create a symlink in /usr/share/applications everything works.
|
I am raising an issue hereThe main thing that I saw in this thread is that everyone is having some sort of issue regarding the GUI apps rendering in the Linux Distro folder in WSLg. When I tried to install This type of issue I didn't see for the first time when I installed WSL linux Ubuntu 24.04. It's only prevalent in the subsequent installation when I tried to uninstall the WSL and the distro itself and then again installing it. |
The issue is solved by using this -
This has to be done by I hope this helps most of the people. I was also frustrated by the bug like everyone else! |
I get so many
Let's take some examples of shortcuts that are successful, and ones that fail to load: weston.log
audacity.desktop
tilex.desktop
weston.log
firefox.desktop
Something as simple as this fails! : spotify.desktop
ls "C:\Users\Andrea\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu"
Directory: C:\Users\Andrea\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 8/20/2024 11:24 AM 1844 Audacity (Ubuntu).lnk
-a--- 8/20/2024 11:24 AM 1962 Live Captions (Ubuntu).lnk
-a--- 8/20/2024 11:24 AM 1746 Tilix (Ubuntu).lnk A pretty simple solution is to create your own .lnk file. Just don't do it in the folder above though, because if you do, Weston will sync the shortcuts and delete the one you make. You can put it elsewhere. |
(Submitting this separately from #4 because I don't believe it to be the same issue as #4.)
Environment
Steps to reproduce
Unknown (should be automatic, I believe?).
I have been using GUI apps on the former distribution for some time before WSLg was released; the latter distribution was a fresh install. In neither case have the Linux GUI apps showed up in the Start menu, and I can confirm that in both cases definition files exist for them under /usr/share/applications.
WSL logs:
Expected behavior
Icons representing the Linux GUI apps should show up in a distro-specific folder, per this repo's README.
Actual behavior
No such icons appear.
The text was updated successfully, but these errors were encountered: