You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux GUI apps aren't showing up in Start menu (shell script support in start menu shortcut) #4
Steven Brix (@stevenbrix), can you see where .desktop file is placed for "Jet Brains Rider" ? In my past experience, JetBrains often places .desktop file under user's home, such as ~/.local/share/applications. But currently we only support global location, such as /usr/share/applications. Also please let us know where your XDG_DATA_DIRS environment variable points to. Thanks!
Steve Pronovost (@spronovo) could you share what the rider desktop file looks like? i'll try @iamwwc's suggestion and see if i can copy it to the global location
Steve Pronovost (@spronovo) could you share what the rider desktop file looks like? i'll try @iamwwc's suggestion and see if i can copy it to the global location
Here is the content of the file
[Desktop Entry]
Version=1.0
Type=Application
Name=JetBrains Rider
Icon=/opt/JetBrains Rider-2020.3.4/bin/rider.svg
Exec="/opt/JetBrains Rider-2020.3.4/bin/rider.sh" %f
Comment=A cross-platform IDE for .NET
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-rider
StartupNotify=true
by looking at weston.log previously provided from you, it looks those .desktop have either "terminal" or "NoDisplay" property, thus those applications won't be registered up at start menu.
and if you created .desktop at /usr/share/applications, WSLg monitors that folder and dynamically adds programs start menu without reboot/restarting WSL, and if you can take a peek /mnt/wslg/weston.log, those are logged there, and if any error, it most likely logged, too.
Hmm, it's still not launching. Something went wrong, but my weston.log file is now almost 3GB in space, so i can't open it in any editors to see what's inside
It's not directly tracking but #66 is the suggesting to launch start menu program under the possible choice of shell (such as bash), and we are currently looking into that, so it's possible to address this as well. We can keep this issue opened until we are sure that can provide solution when Exec is pointing shell script.
Sounds good, i'm also starting to see these errors when i run the rider script locally,
stevenki@poseidon-devbook:~/code/avs$ bash /opt/JetBrains\ Rider-2020.3.4/bin/rider.sh
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
(process:25172): dconf-CRITICAL **: 11:13:51.844: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.847: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.852: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.854: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.876: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
IDE has not been initialized yet
Given your weston.log is 3GB, can you try to shutdown wsl (by wsl --shutdown or --terminate [distro name]). We will also trim the amount of logging or make it circular somehow.
changed the title [-]Linux GUI apps aren't showing up in Start menu[/-][+]Linux GUI apps aren't showing up in Start menu (shell script support in start menu shortcut)[/+]on Apr 29, 2021
Just for an update, i'm now back in this invalid state. I'll try restarting my machine and see if that fixes things. Here are the logs:(weston.log is empty)
The issue with the GUI application not showing up in the start menu in this case has been fix with today's release of 1.0.22 (weston.log should also be growing at a much slower state now :-)). To update to 1.0.22 please run the following from an elevated command prompt:
Activity
craigloewen-msft commentedon Mar 26, 2021
Steven could you open up an Ubuntu instance and run
cp /mnt/wslg/versions.txt /mnt/c/Temp/To copy it to the C:/Temp folder or any other folder on your machine and then attach it?
Accessing versions.txt is a known issue that we are fixing
stevenbrix commentedon Mar 26, 2021
Thanks Craig Loewen (@craigloewen-msft) - I updated the original post to include it
hideyukn88 commentedon Mar 30, 2021
Steven Brix (@stevenbrix), can you see where .desktop file is placed for "Jet Brains Rider" ? In my past experience, JetBrains often places .desktop file under user's home, such as ~/.local/share/applications. But currently we only support global location, such as /usr/share/applications. Also please let us know where your XDG_DATA_DIRS environment variable points to. Thanks!
stevenbrix commentedon Apr 7, 2021
Thanks Hideyuki Nagase (@hideyukn88), hmm there is no
~/.local/share/applicationsfolder, but I can confirm that it is not in/usr/share/applicationsspronovo commentedon Apr 16, 2021
Following Steven's step above on my Ubuntu 20.04, rider did create the desktop file under ~/.local/share/applications per below.
spronovo@spronovo-book:~/.local/share/applications$ ls
chrome-aapocclcgogkmnckokdopfmhonfmgoek-Default.desktop jetbrains-rider.desktop mimeinfo.cache
chrome-nmmhkkegccagdldgiimedpiccmgmieda-Default.desktop mimeapps.list
Unfortunately this is a known limitation at the moment.
taikulawo commentedon Apr 22, 2021
If clion don't create shortcut for you, you can create it manually
create a file at
/usr/share/applications/clion.desktopchange clion path for you own
wait for a while, you can access shortcut from windows start menu
stevenbrix commentedon Apr 22, 2021
Steve Pronovost (@spronovo) could you share what the rider desktop file looks like? i'll try @iamwwc's suggestion and see if i can copy it to the global location
spronovo commentedon Apr 22, 2021
Here is the content of the file
stevenbrix commentedon Apr 29, 2021
thanks Steve Pronovost (@spronovo). so even after adding that file, i still don't see anything in my start menu. do i need to restart?
stevenbrix commentedon Apr 29, 2021
for the record, i have other
.desktopfiles in that directory, but none of them show up in my start menu eitherhideyukn88 commentedon Apr 29, 2021
by looking at weston.log previously provided from you, it looks those .desktop have either "terminal" or "NoDisplay" property, thus those applications won't be registered up at start menu.
and if you created .desktop at /usr/share/applications, WSLg monitors that folder and dynamically adds programs start menu without reboot/restarting WSL, and if you can take a peek /mnt/wslg/weston.log, those are logged there, and if any error, it most likely logged, too.
stevenbrix commentedon Apr 29, 2021
Heyy, look at that! Thanks Hideyuki Nagase (@hideyukn88), the issue was the line endings in the file were Windows style
stevenbrix commentedon Apr 29, 2021
Hmm, it's still not launching. Something went wrong, but my weston.log file is now almost 3GB in space, so i can't open it in any editors to see what's inside

hideyukn88 commentedon Apr 29, 2021
I noticed "Exec="/opt/JetBrains Rider-2020.3.4/bin/rider.sh" %f" so it's shell script, I don't think this is currently possible with WSLg
stevenbrix commentedon Apr 29, 2021
Thanks Hideyuki Nagase (@hideyukn88), is there a known issue tracking this?
hideyukn88 commentedon Apr 29, 2021
It's not directly tracking but #66 is the suggesting to launch start menu program under the possible choice of shell (such as bash), and we are currently looking into that, so it's possible to address this as well. We can keep this issue opened until we are sure that can provide solution when Exec is pointing shell script.
stevenbrix commentedon Apr 29, 2021
Sounds good, i'm also starting to see these errors when i run the rider script locally,
stevenki@poseidon-devbook:~/code/avs$ bash /opt/JetBrains\ Rider-2020.3.4/bin/rider.sh
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
(process:25172): dconf-CRITICAL **: 11:13:51.844: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.847: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.852: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.854: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
(process:25172): dconf-CRITICAL **: 11:13:51.876: failed to allocate file '/mnt/wslg/runtime-dir/dconf/user': No space left on device. dconf will not work properly.
IDE has not been initialized yet
hideyukn88 commentedon Apr 29, 2021
Given your weston.log is 3GB, can you try to shutdown wsl (by wsl --shutdown or --terminate [distro name]). We will also trim the amount of logging or make it circular somehow.
[-]Linux GUI apps aren't showing up in Start menu[/-][+]Linux GUI apps aren't showing up in Start menu (shell script support in start menu shortcut)[/+]stevenbrix commentedon Apr 30, 2021
Hideyuki Nagase (@hideyukn88) interesting, this is now working. i wonder if my wsl was in a bad state or something
stevenbrix commentedon May 4, 2021
Just for an update, i'm now back in this invalid state. I'll try restarting my machine and see if that fixes things. Here are the logs:(weston.log is empty)
pulseaudio.log
versions.txt
Here's output from the debug console:
wsl_output.txt
stevenbrix commentedon May 4, 2021
A restart does fix things, and thankfully Windows has made restarts less disruptive, but it would be nice to not require one
spronovo commentedon May 22, 2021
The issue with the GUI application not showing up in the start menu in this case has been fix with today's release of 1.0.22 (weston.log should also be growing at a much slower state now :-)). To update to 1.0.22 please run the following from an elevated command prompt: