moksha icon indicating copy to clipboard operation
moksha copied to clipboard

X Server Freezes When Searching for Invalid .desktop Files in Everylauncher

Open jjpb44 opened this issue 1 year ago • 17 comments

When using Everylauncher, the X server freezes upon attempting to search for files with invalid paths. In a previous case, I discovered that a .desktop file with spaces in its path caused the issue. However, in the current situation, I am unable to locate any .desktop files with spaces—even though the freeze still occurs.

Steps to Reproduce:

  1. Open Everylauncher.
    
  2. Initiate a search that involves an invalid file path (possibly referencing a .desktop file with an incorrect path).
    
  3. Observe that the X server freezes.
    

Expected Behavior: Everylauncher should handle invalid file paths gracefully, ideally logging an error instead of freezing the X server.

Additional Information:

  • Log Files: It would be useful to know if Everylauncher outputs errors to a specific log file. This information could help diagnose the issue further.
    
  • Feature Request: Support for .desktop files containing spaces in their paths would be a welcome enhancement.
    

jjpb44 avatar Apr 04 '25 17:04 jjpb44

Hello I am not fully sure how to reproduce your problem. If you mean "spaces in file path", you mean the path to the desktop file or path in exec=path to the binary file? BTW, there is a way how to see the problem hopefuly. Install xephyr server and use it this way: Open terminology and paste this line: Xephyr -screen 1024x768 -br :1 open an another window and put this: DISPLAY=:1 enlightenment_start

You will see bodhi in nested session and now try launcher inside it. If you reach the problem you can see some output in term window. If not, an another way is using gdb but it is an another story level...

Stefan/bodhi dev

thewaiter avatar Apr 04 '25 18:04 thewaiter

Correct, the path to the desktop file probably contains spaces (" "). I will try to debug with xephyr

jjpb44 avatar Apr 04 '25 22:04 jjpb44

Not sure how can path include space char. Desktop files are mostly stored in /usr/share/applications or ~/.local/share/applications. Have you created a personal desktop file and stored in some non standard place?

thewaiter avatar Apr 05 '25 10:04 thewaiter

I have thoroughly checked the directories, and there are no suspicious paths. Additionally, I have not created any personal or custom .desktop files, which makes this behavior particularly strange to me.

jjpb44 avatar Apr 06 '25 03:04 jjpb44

OK, I agree it is strange. I suggest clearing Moksha config file. It should be harmless: rm ~/.e/e/config/bodhi/module.everything*.cfg If you wanna more aggressive clean remove the whole ~/.e folder. BUT, be aware the whole settings will be gone! In both cases, restart Moksha with CTRL ALT END.

thewaiter avatar Apr 06 '25 06:04 thewaiter

I conducted the Xephyr test, and it consistently freezes without displaying any error messages. Notably, the freeze occurs ONLY when attempting to search using the letters 'y', 'u', 'a', 'h', 'l', or 'n'. This leads me to suspect that a corrupted file path containing one of these letters might be causing the issue.

jjpb44 avatar Apr 08 '25 21:04 jjpb44

Have you tried my suggestion of removing config files?

thewaiter avatar Apr 09 '25 13:04 thewaiter

Well I removed the whole .e folder and also made the Xephyr test again. The freeze is still there in everything launcher

jjpb44 avatar Apr 09 '25 19:04 jjpb44

Hmm, very strange. Frankly you are the first who announced this issue. My another idea: have you checked your ISO with MD5 file? This looks like corrupted installation. Do you have an another installation on other machine? Same issue?

thewaiter avatar Apr 10 '25 05:04 thewaiter

Details

Give me some screenshots or a less than 30s video of how the launcher isn't working.

Signed - ???

ket395 avatar Apr 14 '25 17:04 ket395

Xephyr test

jjpb44 avatar Apr 14 '25 21:04 jjpb44

I can see "app not found: /usr/bin/UnityHubNative". What is that?

Hmm, something is badly cached. Not 100% sure but can you remove ~/.cache/efreet folder? After that restart Moksha and wait a while to read all caches (icons, desktops).

thewaiter avatar Apr 15 '25 14:04 thewaiter

I'm not sure what is calling /usr/bin/UnityHubNative because I uninstalled the program and also removed the .desktop file and cache.

jjpb44 avatar Apr 19 '25 23:04 jjpb44

It seems that deleting the .cache/efreet folder resolved the freezing issue with the Everything Launcher, but inadvertently caused the removal of .desktop files in ~/.local/share/applications/. Copying them back from /usr/share/applications/ hasn't restored their functionality.

Xephyr test after efreet removal and reboot

jjpb44 avatar Apr 19 '25 23:04 jjpb44

Hmm, I deleted cache/efreet for test and it did not erase desktop files from local/share/apps here. Try removing evry cache now with: rm .e/e/config/bodhi/module.every*

BTW, I had to updated icons cache to bring them back: sudo update-icon-caches /usr/share/icons/*

thewaiter avatar Apr 20 '25 05:04 thewaiter

@thewaiter I'm on arch Linux, couldn't find update-icon-caches command.

jjpb44 avatar Apr 20 '25 19:04 jjpb44

gtk-update-icon-cache on Arch: https://wiki.archlinux.org/title/Icons

batden avatar Apr 21 '25 07:04 batden