cerebroapp / cerebro-basic-apps

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

Installed programs are not found in cerebro search #14

Open dovydasgulbinas opened 7 years ago

dovydasgulbinas commented 7 years ago

Hello I've installed cerebro on my second linux machine, but on new instance I can't see any installed programs eg. spotify, google chrome etc. Is there some sort of setting I am missing, or the installation location is bad?

dar5hak commented 7 years ago

@megamorphf Could you provide more info? What distro and version are you using? What was on the first machine?

dovydasgulbinas commented 7 years ago

on the first machine I was using linux mint 18 and all apps worked fine. The non working machine was on mint 17. On the working machine my '.AppImage' was located: ~/Tools/cerebro. On the broken one: ~/Downloads On Wed, 1 Mar 2017 at 19:39, Darshak Parikh notifications@github.com wrote:

@megamorphf https://github.com/megamorphf Could you provide more info? What distro and version are you using? What was on the first machine?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/KELiON/cerebro/issues/183#issuecomment-283412728, or mute the thread https://github.com/notifications/unsubscribe-auth/AMm1vHF0dB_0kHGd9xEAiDhlPg5_fgrPks5rha1WgaJpZM4MNmcc .

vedransavi commented 7 years ago

I also have an intermittent issue's where I cant find any applications.
Plugins still work (convertColor, IP etc...), there are just no results when searching for apps. ie. 'Terminal' only shows google search or translate.

vedransavi commented 7 years ago

I get this error: Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined(…)

Error refers to: return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');

gtrias commented 7 years ago

I'm having the same issue using arch-linux using cerebro-git from AUR (https://aur.archlinux.org/packages/cerebro-git/). How I can see the logs to report here?

vedransavi commented 7 years ago

On MacOS... there is a icon in the titlebar. Cerebro icon -> development -> dev tolls (main) it will give you console. Hope this helps with Arch

matmunn commented 7 years ago

You need to have developer mode enabled in Cerebro settings to be able to see the submenu.

gtrias commented 7 years ago

Well, I was able to se the Developer Tools console but no error was thrown, so I can't figure why I don't see any app of my Arch Linux...

naisanza commented 7 years ago

Same thing for me

Ubuntu Server 16.10 + ubuntu-desktop + my script file that I use to setup my environment

vedransavi commented 7 years ago

Application search was working correctly, as expected for the last 2 weeks without issue.

Today, I can no longer search for applications. I can use the '/Applications/... ' to find an app, but just typing the app name returns no results.

Error in console: main.bundle.js:40417 Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined

KELiON commented 7 years ago

@vedransavi can you try to restart Cerebro first and and if it doesn't work – restart your machine? Also, do you remember if you installed something new at this time?

vedransavi commented 7 years ago

@KELiON I may have found a way to reproduce my error... I am on a Macbook Pro with Touchbar. When I plug in an external drive, I get the same error where I cant find Apps. I am ¿thinking¿ it might be something do to with indexing?

When I first installed Cerebro at work (with a network drive connected) Cerebro would be flakey. When at home, Cerebro worked perfectly. After some time at work, Cerebro now works without issue.

Now more recently, when I plug in an external hdd, I have the same issue. When I unplug it, and after a few mins Cerebro works as expected.

Hope that helps!

KELiON commented 7 years ago

@vedransavi, I think we can fix it. Can you share absolute path to some application from external drive?

Problem in cache: we save list of applications invalidate this list time-to-time, but we are waiting for changes only in applications directories (like /Applications or ~/Applications). So, when new applications added to these folders cache is refilled with new list.. But when you plug your external drive we don't invalidate cache, so you get correct result only after 30 minutes.

Xananax commented 7 years ago

I have the same issue as @gtrias, also on arch linux. I get no errors in the dev console other than

[machine-id error] Error: Command failed: cat /var/lib/dbus/machine-id
cat: /var/lib/dbus/machine-id: No such file or directory
at checkExecSyncError (child_process.js:502:13)

Which I don't think has anything to do with it. Other plugins work without problems. Restarting cerebro and/or rebooting does nothing. Other launchers (rofi, dmenu) find applications like normal. I think the problem @vedransavi describes is a different one as my problem (and I guess @gtrias' is consistent whether things are plugged or not)

KELiON commented 7 years ago

@Xananax 1) Can you check what version do you use? 2) If you use version 0.3 – can you check that apps plugin is installed?

Xananax commented 7 years ago

Oh my god I feel so utterly stupid. Yes, it needed the "basic apps" plugins. I even suspected something like that and looked quickly, but missed it.

It works! Thanks a ton

KELiON commented 7 years ago

@Xananax anyway, something happened in your machine, because this package had to be installed automatically. Just a question – did you update existing app to 0.3 or you just downloaded it and it was fresh install?

Xananax commented 7 years ago

@KELiON I updated it from the AUR. You can see what the package is doing in the install script:

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  yarn && cd ./app && yarn && cd ../
  yarn run build

  if [ $CARCH == 'x86_64' ]; then
    node_modules/.bin/build --linux --x64 --dir
  elif [ $CARCH == 'i686' ]; then
    node_modules/.bin/build --linux --ia32 --dir
  else
    echo "Unknown architecture"; exit 1;
  fi
}

So basically, runs build, if I understand correctly; then the package() function just distributes the icons and binaries to their respective places.

Ziggoto commented 6 years ago

Same here. At Ubuntu 16.04

aksh1618 commented 6 years ago

Taking a hint from @Xananax's comment, I uninstalled the basic apps plugin, and then reinstalled it. Apps are shown now. (I'm also on arch)

Abolfazl-MI commented 1 year ago

also I ihave this problem with 0.7 version on ubuntu last version It dosent show me installed apps to open it