cerebroapp / cerebro-basic-apps

📦 Cerebro plugin for applications search and launch on windows and linux
MIT License
11 stars 11 forks source link

App search is not working [Lubuntu 16.04] #15

Open vadimstrukov opened 7 years ago

vadimstrukov commented 7 years ago

Just installed latest version through AppImage, but cerebro is not searching my applications image

kion commented 7 years ago

Same on Ubuntu 16.10. Installed Cerebro via deb.

rafa-acioly commented 7 years ago

same on ubuntu 16.10. Installed Cerebro via .AppImage

elmerehbi commented 7 years ago

I am running it on Ubuntu Gnome 16.04 (running using npm run package; didn't figure out how to install) and things are working including app search.

KELiON commented 7 years ago

Can you please do the following:

1) Open settings 2) Turn on developer mode, show icon in tray 3) From tray icon choose development -> DevTools (background) 4) From tray icon choose development -> reload 5) And after that send me output of console tab of devtools?

/cc @vadimstrukov @kion @rafa-acioly

vadimstrukov commented 7 years ago

image

Interesting.. After i deleted .desktop entry of Fallout2 with bad encoding, everything seems to be working fine and without any errors in console.

image

kion commented 7 years ago

Confirmed. I had same exact issue caused by .desktop file name encoding. Removing .desktop file fixed the issue for me, but, obviously, it's just a workaround and issue needs a fix.

KELiON commented 7 years ago

@vadimstrukov @kion can you paste the real name of broken file (with correct encoding)?

markmandel commented 7 years ago

Similar situation, slightly different reason - permissions issue:

Uncaught (in promise) Error: EACCES: permission denied, open '/usr/share/applications/jetbrains-idea.desktop'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:506:29)
    at parseDesktopFile (file:///opt/Cerebro/resources/app.asar/dist/background.bundle.js:14415:33)

Thinking this sort of thing should be caught, logged to console, and then the application should just be ignored, so as to not break anything else?

vadimstrukov commented 7 years ago

@KELiON .desktop entry has russian word 'Запуск' or something like that, but with bad wine encoding. I am agree actually with @markmandel, that kind of errors shouldn't break the whole application