Open D3vil0p3r opened 1 year ago
I got the cause. It is very weird but... I have several .desktop files in /usr/share/applications
. Some of these are the cause of my issue. According to my tests, if in /usr/share/applications
directory there is JUST ONE .desktop
file with the content of Exec=
field between 242 and 256 characters in length (boundary included), GUI apps like gedit
don't work (not appearing or open and close immediately).
As example, edit one of your .desktop
files and add the following after Exec=
:
testesttesttesttestshell-rocket "if command -v osr-osrframework-cli &> /dev/null;then osr-osrframework-cli -h;$SHELL;else echo \\"osr-osrframework-cli is not installed. I'm retrieving it for you...\\";sudo pacman -S osrframework;osr-osrframework-cli -h;$SHELL;fi;"
that are 256 chars, and run gedit
or xfce4-terminal
. Their GUI won't work.
Now add the following after Exec=
on the same .desktop file:
testesttesttesttestshell-rocket "if command -v osr-osrframework-cli &> /dev/null;then osr-osrframework-cli -h;$SHELL;else echo \\"osr-osrframework-cli is not installed. I'm retrieving it for you...\\";sudo pacman -S osrframework;osr-osrframework-cli -h;$SHELL;fi;"
that are 264 chars, and run gedit
or xfce4-terminal
. Their GUI will work as expected.
Summarizing, if I have .desktop files outside that boundary above, the GUI apps appear as expected.
I'm using Arch Linux WSL rolling but I guess you can reproduce it in any systemd environment. Why do we get this behavior?
Windows build number:
Microsoft Windows [Version 10.0.22621.2428]
Your Distribution version:
Arch Linux rolling with systemd
Your WSL versions:
WSL version: 1.2.5.0 Kernel version: 5.15.90.1 WSLg version: 1.0.51 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.2428
Steps to reproduce:
Try several times:
if no GUI popup window open for 1 second and close but Password just hangs, CTRL+C and retry. When you retry, it can happen that GUI popup window of secret-tool appears for 1 second and then closes automatically:
Same behavior if I use
gedit
orxfce4-terminal
.Why is it closing automatically?
WSL logs:
weston.log pulseaudio.log stderr.log
Additional logs:
journalctl -xe
WSL dumps:
/mnt/wslg/dumps
folder empty.Expected behavior:
The GUI popup window must not close automatically.
Actual behavior:
GUI popup window opens and closes automatically after one second.