microsoft / wslg

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

Linux GUI apps not showing up in Start Menu #45

Open cerebrate opened 3 years ago

cerebrate commented 3 years ago

(Submitting this separately from #4 because I don't believe it to be the same issue as #4.)

Environment

Windows build number: 21365
Your Distribution version: Debian 11 (bullseye/sid) / Ubuntu 20.04
Your WSLg version: 1.0.17.1

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.

hideyukn88 commented 3 years ago

@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) [11:33:45.029] app_list_monitor_thread: inotify_add_watch(/usr/local/share/applications) [11:33:45.029] app_list_monitor_thread: inotify_add_watch failed: Permission denied

cerebrate commented 3 years ago

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.

hideyukn88 commented 3 years ago

@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).

cerebrate commented 3 years ago

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?

abhishekchak52 commented 2 years ago

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.

hideyukn88 commented 2 years ago

@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!

abhishekchak52 commented 2 years ago

@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

[16:23:18.069] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[16:23:18.321] app list folder[1]: /usr/local/share/applications

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:

[18:24:11.941] app_list_monitor_thread: file created/updated (emacs.desktop)
[18:24:11.960] desktop file: /usr/share/applications/emacs.desktop
[18:24:11.960]     Name[en_US]:Emacs (Ubuntu)
[18:24:11.960]     Exec:emacs 
[18:24:11.960]     TryExec:(null)
[18:24:11.960]     WorkingDir:(null)
[18:24:11.960]     Icon name:emacs
[18:24:11.960]     Icon file:(null)
[18:24:11.960] app list entry updated: Key:emacs, Name:Emacs (Ubuntu)
[18:24:11.960] app_list_monitor_thread: file created/updated (emacs.desktop)
[18:24:11.960] desktop file: /usr/share/applications/emacs.desktop
[18:24:11.960]     Name[en_US]:Emacs (Ubuntu)
[18:24:11.960]     Exec:emacs 
[18:24:11.960]     TryExec:(null)
[18:24:11.960]     WorkingDir:(null)
[18:24:11.960]     Icon name:emacs
[18:24:11.960]     Icon file:(null)
[18:24:11.960] app list entry updated: Key:emacs, Name:Emacs (Ubuntu)
[18:24:11.960] free_app_entry(): Emacs (Ubuntu): /usr/share/applications/emacs.desktop
[18:57:39.778] app_list_monitor_thread: file created/updated (firefox.desktop)
[18:57:39.778] desktop file: /usr/share/applications/firefox.desktop
[18:57:39.778]     Name[en_US]:Firefox Web Browser (Ubuntu)
[18:57:39.778]     Exec:firefox 
[18:57:39.778]     TryExec:(null)
[18:57:39.778]     WorkingDir:(null)
[18:57:39.778]     Icon name:firefox
[18:57:39.778]     Icon file:(null)
[18:57:39.778] app list entry updated: Key:firefox, Name:Firefox Web Browser (Ubuntu)

This is after I installed firefox as you suggested, but nothing popped up for that either.

hideyukn88 commented 2 years ago

@abhishekchak52, I'm not seeing that issue. Would you please update to the latest WSLg? It looks yours is too old version. Thanks!

Your WSLg version: 1.0.17.1

image

abhishekchak52 commented 2 years ago

@hideyukn88 Yeah, I think something else might be the issue. wsl.exe --version gives me

WSL version: 0.47.1.0
Kernel version: 5.10.60.1
WSLg version: 1.0.29
Windows version: 10.0.22000.282

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

hideyukn88 commented 2 years ago

@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) [18:24:11.960] free_app_entry(): Emacs (Ubuntu): /usr/share/applications/emacs.desktop

abhishekchak52 commented 2 years ago

@hideyukn88 No I can't see firefox either. Is there any way I can remove WSL completely and then reinstall everything?

hideyukn88 commented 2 years ago

@abhishekchak52, please do below.

0: At cmd.exe, "wsl --shutdown". 1: Settings App -> Apps & Features -> Uninstall "Windows Subsystem for Linux WSLg Preview". 2: At same Apps & Features -> Uninstall "Windows Subsystem for Linux". 2: Start Menu -> Find "Windows Subsystem for Linux Preview" -> Right click -> Uninstall.

Then reinstall WSL from Store app. Please let me know how it goes. If problem persist, please share weston.log again, thanks!

abhishekchak52 commented 2 years ago

@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!

scythx commented 2 years ago

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.

ErfanRasti commented 2 years ago

I did this and it worked for me:

  1. Turn the windows feature on or off -> Disable "Windows Subsystem for Linux"
  2. Restart your computer
  3. Apps and features -> Uninstall "Linux Subsystem for Linux Update"
  4. Apps and features -> Uninstall "Linux Subsystem for Linux WSLg Preview"
  5. Apps and features -> Uninstall "Linux Subsystem for Linux Preview"
  6. Restart your computer
  7. Turn the windows feature on or off -> Enable "Windows Subsystem for Linux"
  8. Restart your computer
  9. Go to Settings -> Windows update -> Check for updates (It will automatically install "Linux Subsystem for Linux Update" and "Linux Subsystem for Linux WSLg Preview".)
  10. Restart your computer
  11. Now, if you open Ubuntu distro or other distros terminal the GUI apps will be showed up in the start menu.

Caution: I recommend not installing the "Linux Subsystem for Linux Preview" app from the windows store. It will load some extra preview options which lead you to some bugs. All the necessary options will be installed via check for updates.

adrianghc commented 2 years ago

I did this and it worked for me:

  1. Turn the windows feature on or off -> Disable "Windows Subsystem for Linux"
  2. Restart your computer
  3. Apps and features -> Uninstall "Linux Subsystem for Linux Update"
  4. Apps and features -> Uninstall "Linux Subsystem for Linux WSLg Preview"
  5. Apps and features -> Uninstall "Linux Subsystem for Linux Preview"
  6. Restart your computer
  7. Turn the windows feature on or off -> Enable "Windows Subsystem for Linux"
  8. Restart your computer
  9. Go to Settings -> Windows update -> Check for updates (It will automatically install "Linux Subsystem for Linux Update" and "Linux Subsystem for Linux WSLg Preview".)
  10. Restart your computer
  11. Now, if you open Ubuntu distro or other distros terminal the GUI apps will be showed up in the start menu.

Caution: I recommend not installing the "Linux Subsystem for Linux Preview" app from the windows store. It will load some extra preview options which lead you to some bugs. All the necessary options will be installed via check for updates.

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.

hukz18 commented 1 year ago

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. I managed to create a shortcut manually by these steps:

  1. Navigate to /usr/share/application and check whether a .desktop file is created, if so, remember its name. Say, the file name is app_name.desktop.
  2. Execute the filename of the .desktop file anywhere in wsl to see whether a gui app opens correctly (try to execute app_name in wsl).
  3. In Windows, navigate to $HOME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu-22.04 and right-click to create a shortcut file.
  4. In the Type the location of the item box, input the following commands: C:\Windows\System32\wslg.exe ~ -d Ubuntu-22.04 app_name.
  5. Click next and give the shortcut a name you like. You could also change its icon later, the shortcut should showup in the start menu now.

Hope this manual solution helps :-).

hukz18 commented 1 year ago

For me, the problem is fixed after an update to windows 11 22622.601, new wsl apps show up automaticaly.

jarrard commented 1 year ago

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. weston.log

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. Now I'm downloading 10.0.22622.601 insider preview update. Hopefully this resolves all these WSL issues.
I really don't know why MS can't push out micro-updates to fix problems in WSLg instead of putting it all bundled in a MASSIVE mega update! it works for Linux!

VenelinU commented 1 year ago

I got the same problem. I have managed to create the shortcuts manually. Create the shortcut here: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Ubuntu(distro name) VLC.lnk C:\Windows\System32\wsl.exe ~ -d Ubuntu /usr/bin/vlc

It is working like a charm :-)

TAJ68PR commented 1 year ago

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.

Andrew-J-Larson commented 1 year ago

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?

Paranoid-Dev commented 1 year ago

In my case, the distro I was using didn't have /usr/local/share/applications, it was using /usr/share/applications/. So I just created a symlink and after a windows reboot, everything works as it should

ln -s /usr/share/applications/ /usr/local/share/
hideyukn88 commented 1 year ago

In my case, the distro I was using didn't have /usr/local/share/applications, it was using /usr/share/applications/. So I just created a symlink and after a windows reboot, everything works as it should

ln -s /usr/share/applications/ /usr/local/share/

@Paranoid-Dev, I think that folder should be monitored, please let us know if it still doesn't work, thanks!

https://github.com/microsoft/weston-mirror/blob/7fd9ba2f35b6171ddaedc5990432d6de10695008/rdprail-shell/app-list.c#L857

ctosagme commented 1 year ago

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

hideyukn88 commented 1 year ago

@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!

ctosagme commented 1 year ago

here's some example some of them open but not the others like firefox, Root Terminal Emulator https://www.reddit.com/user/ctos123game/comments/11dvngi/linux_application_wont_open/?utm_source=share&utm_medium=web2x&context=3

MrLuje commented 9 months ago

@Paranoid-Dev, I think that folder should be monitored, please let us know if it still doesn't work, thanks!

microsoft/weston-mirror@7fd9ba2/rdprail-shell/app-list.c#L857

It looks like some editors are using ~/.local/share/applications/ (or at least Jetbrains).

$ 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 ?

trueuto commented 7 months ago

I have that problem on Windows 11 - even though .desktop files are being created under /usr/share/applications (and Start Menu shortcuts even appear after the app is installed) - shortcuts get removed after some time while .desktop files are still in their location.

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 weston.log I can see e.g.:

[20:31:19.373] desktop file: /usr/share/applications/audacity.desktop
[20:31:19.373]     Name[en_US]:Audacity (Debian)
[20:31:19.373]     Exec:env GDK_BACKEND=x11 audacity
[20:31:19.373]     TryExec:(null)
[20:31:19.373]     WorkingDir:(null)
[20:31:19.373]     Icon name:audacity
[20:31:19.373]     Icon SVG :1
[20:31:19.373]     Icon file:/usr/share/icons/hicolor/scalable/apps/audacity.svg
[20:31:19.373]     Icon image:0x7f76a8036250
[20:31:19.373] app list entry updated: Key:audacity, Name:Audacity (Debian)

However for a lot of others I have these errors:

[20:31:19.374] attach_app_list_namespace failed Invalid argument
[20:31:19.374] desktop file: /usr/share/applications/pavucontrol.desktop is failed to be loaded: No such file or directory
[20:31:19.374] app list entry failed to update: Key:pavucontrol
[20:31:19.374] free_app_entry(): (null): /usr/share/applications/pavucontrol.desktop
[20:31:19.374] attach_app_list_namespace failed Invalid argument
[20:31:19.374] desktop file: /usr/share/applications/sqlitebrowser.desktop is failed to be loaded: No such file or directory
[20:31:19.374] app list entry failed to update: Key:sqlitebrowser
[20:31:19.374] free_app_entry(): (null): /usr/share/applications/sqlitebrowser.desktop
[20:31:19.374] attach_app_list_namespace failed Invalid argument

WSL version: 2.0.14.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.3007

TheNavyBear commented 7 months ago

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.

TheNavyBear commented 7 months ago

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: System 1: All 4 new apps showed in start menu, but 4 original apps disappeared System 2: 1 new app showed in start menu, but one original app disappeared. System 3 (the system in previous comment): After another reboot, the apps showed up in start menu again, two of the new apps were there, and two of the original apps had disappeared.

Is there a way to increase the number of Linux GUI apps displayed in the start menu?

psynautic commented 3 months ago

i'm having the same problem as @trueuto

here is an example of me renaming a file to coerce it into doing something.


[03:06:39.099] app_list_monitor_thread: file created/updated (doom_emacs.desktop)
[03:06:39.099] attach_app_list_namespace failed Invalid argument
[03:06:39.107] desktop file: /usr/share/applications/doom_emacs.desktop is failed to be loaded: No such file or directory
[03:06:39.107] app list entry failed to update: Key:doom_emacs
[03:06:39.107] free_app_entry(): (null): /usr/share/applications/doom_emacs.desktop
remd commented 2 months ago

@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.

$ pwd
/usr/share/applications
$ sudo ln -s /usr/local/share/applications/emacs.desktop emacs.desktop
sohan23 commented 1 month ago

I am raising an issue here

The 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 gedit in Linux Ubuntu 24.04. The shortcut created in the $HOME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu-24.04 folder and also the fact that the <app_name>.desktop are placed in /usr/share/applications rather /usr/local/share/applications

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.

sohan23 commented 1 month ago

I am raising an issue here

The 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 gedit in Linux Ubuntu 24.04. The shortcut created in the $HOME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu-24.04 folder and also the fact that the <app_name>.desktop are placed in /usr/share/applications rather /usr/local/share/applications

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 -

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.

This has to be done by sudo chmod o+rx /usr/local/share/applications and then you have to do wsl -install, wsl -update and wsl-shutdown and again starting wsl.exe. and then test it with a simple sudo apt-get install <app> command.

I hope this helps most of the people. I was also frustrated by the bug like everyone else!

andreaxhearts commented 3 weeks ago

I get so many desktop file: /usr/share/applications/ .desktop is failed to be loaded: No such file or directory errors. There are a lot of .desktop files in /usr/share/applications (for some gui apps, some not), but I'm only getting three shortcuts in the Start menu. I'm not seeing a reason why it shouldn't work.

WSL version: 2.2.4.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.61 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26091.1-240325-1447.ge-release Windows version: 10.0.19045.4780

(Ubuntu 24.04 LTS) /usr/share/applications drwxr-xr-x 2 root root 4096 Aug 20 11:25 applications

Let's take some examples of shortcuts that are successful, and ones that fail to load:

weston.log

[10:36:08.096] desktop file: /usr/share/applications/com.gexperts.Tilix.desktop
[10:36:08.096]     Name[en_US]:Tilix (Ubuntu)
[10:36:08.096]     Exec:tilix
[10:36:08.096]     TryExec:(null)
[10:36:08.096]     WorkingDir:(null)
[10:36:08.096]     Icon name:com.gexperts.Tilix
[10:36:08.096]     Icon SVG :1
[10:36:08.096]     Icon file:/usr/share/icons/hicolor/scalable/apps/com.gexperts.Tilix.svg
[10:36:08.096]     Icon image:0x7f1254027550
[10:36:08.096] app list entry updated: Key:Tilix, Name:Tilix (Ubuntu)
[10:36:08.104] desktop file: /usr/share/applications/net.sapples.LiveCaptions.desktop
[10:36:08.104]     Name[en_US]:Live Captions (Ubuntu)
[10:36:08.104]     Exec:/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=livecaptions net.sapples.LiveCaptions
[10:36:08.104]     TryExec:(null)
[10:36:08.104]     WorkingDir:(null)
[10:36:08.104]     Icon name:/usr/share/icons/hicolor/256x256/apps/net.sapples.LiveCaptions.png
[10:36:08.104]     Icon SVG :0
[10:36:08.104]     Icon file:/usr/share/icons/hicolor/256x256/apps/net.sapples.LiveCaptions.png
[10:36:08.104]     Icon image:0x7f125400c540
[10:36:08.104] app list entry updated: Key:LiveCaptions, Name:Live Captions (Ubuntu)

. . .

[10:36:08.169] desktop file: /usr/share/applications/audacity.desktop
[10:36:08.169]     Name[en_US]:Audacity (Ubuntu)
[10:36:08.169]     Exec:env UBUNTU_MENUPROXY=0 GDK_BACKEND=x11 audacity 
[10:36:08.169]     TryExec:(null)
[10:36:08.169]     WorkingDir:(null)
[10:36:08.169]     Icon name:audacity
[10:36:08.169]     Icon SVG :1
[10:36:08.169]     Icon file:/usr/share/icons/hicolor/scalable/apps/audacity.svg
[10:36:08.169]     Icon image:0x7f125401b820
[10:36:08.169] app list entry updated: Key:audacity, Name:Audacity (Ubuntu)
audacity.desktop ``` [Desktop Entry] Name=Audacity GenericName=Sound Editor GenericName[ar]=محرر أصوات GenericName[ca]=Editor d'àudio GenericName[da]=Lydredigeringsprogram GenericName[de]=Audio-Editor . . . localization . . . Comment=Record and edit audio files . . . localization . . . Keywords=audio;sound;alsa;jack;editor; Icon=audacity Type=Application Categories=AudioVideo;Audio;AudioVideoEditing; Exec=env UBUNTU_MENUPROXY=0 GDK_BACKEND=x11 audacity %F StartupNotify=false Terminal=false MimeType=application/x-audacity-project;audio/aac;audio/ac3;audio/mp4;audio/x-ms-wma;video/mpeg;audio/flac;audio/x-flac;audio/mpeg;audio/basic;audio/x-aiff;audio/x-wav;application/ogg;audio/x-vorbis+ogg ```
tilex.desktop ``` [Desktop Entry] Version=1.0 Name=Tilix Comment=A tiling terminal for Gnome Keywords=shell;prompt;command;commandline;cmd; Exec=tilix Terminal=false Type=Application StartupNotify=true Categories=System;TerminalEmulator;X-GNOME-Utilities; Icon=com.gexperts.Tilix DBusActivatable=true Actions=new-window;new-session;preferences; X-Ubuntu-Gettext-Domain=tilix [Desktop Action new-window] Name=New Window Exec=tilix --action=app-new-window [Desktop Action new-session] Name=New Session Exec=tilix --action=app-new-session [Desktop Action preferences] Name=Preferences Exec=tilix --preferences ```


weston.log

[10:36:08.169] attach_app_list_namespace failed Invalid argument
[10:36:08.169] desktop file: /usr/share/applications/firefox.desktop is failed to be loaded: No such file or directory
[10:36:08.170] app list entry failed to update: Key:firefox
[10:36:08.170] free_app_entry(): (null): /usr/share/applications/firefox.desktop
[10:36:08.170] attach_app_list_namespace failed Invalid argument
[10:36:08.170] desktop file: /usr/share/applications/pavucontrol.desktop is failed to be loaded: No such file or directory
[10:36:08.170] app list entry failed to update: Key:pavucontrol
[10:36:08.170] free_app_entry(): (null): /usr/share/applications/pavucontrol.desktop
[10:36:08.170] attach_app_list_namespace failed Invalid argument
[10:36:08.170] desktop file: /usr/share/applications/spotify.desktop is failed to be loaded: No such file or directory
[10:36:08.170] app list entry failed to update: Key:spotify
[10:36:08.170] free_app_entry(): (null): /usr/share/applications/spotify.desktop
firefox.desktop ``` [Desktop Entry] Version=1.0 NoDisplay=true Name=Firefox Web Browser Name[ar]=متصفح الويب فَيَرفُكْس Name[ast]=Restolador web Firefox . . . localization . . . Comment=Browse the World Wide Web . . . GenericName=Web Browser . . . Keywords=Internet;WWW;Browser;Web;Explorer . . . Exec=firefox %u Terminal=false X-MultipleArgs=false Type=Application Icon=firefox Categories=GNOME;GTK;Network;WebBrowser; MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;video/webm;application/x-xpinstall; StartupNotify=true StartupWMClass=firefox Actions=new-window;new-private-window; [Desktop Action new-window] Name=Open a New Window . . . localization . . . Exec=firefox -new-window [Desktop Action new-private-window] Name=Open a New Private Window . . . Exec=firefox -private-window ```


Something as simple as this fails! :

spotify.desktop

[Desktop Entry]
Type=Application
Name=Spotify
Icon=/usr/share/icons/hicolor/512x512/apps/spotify-client.png
Exec=/usr/bin/spotify
Terminal=false
Categories=Audio;Music;Player;AudioVideo;

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.