fdw / ranger-autojump

The combined magic of autojump, ranger and zsh
MIT License
72 stars 9 forks source link

Crash when launched via desktop #8

Closed rafli-sss closed 2 years ago

rafli-sss commented 2 years ago

Fedora 36 Gnome 42 Ranger version: ranger 1.9.3 Python version: 3.10.5 (main, Jun 9 2022, 00:00:00) [GCC 12.1.1 20220507 (Red Hat 12.1.1-1)] Locale: en_US.UTF-8 Video Screenshot

fdw commented 2 years ago

If you launch it from the terminal, does the same thing happen?

Also, it seems from the screenshot that you do not have autojump installed (or not on the path). Could that be?

rafli-sss commented 2 years ago

If you launch it from the terminal, does the same thing happen?

Also, it seems from the screenshot that you do not have autojump installed (or not on the path). Could that be?

  1. It works when i launch it via terminal
  2. When the plugin is deactivated, ranger works when i launch it via desktop
  3. autojump --version autojump v22.5.3
  4. echo $PATH /home/firstguardian/.autojump/bin:/home/firstguardian/bin:/home/firstguardian/.cargo/bin:/home/firstguardian/.local/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/firstguardian/.composer/vendor/bin
fdw commented 2 years ago

I would guess that you add /home/firstguardian/.autojump/bin to your path in one of your shell's rc files, right? So, when you start ranger from there, the files have been read, the path has been added, at it works. But if you start it directly, then the path is not added (as you haven't started the shell first), which crashes the plugin.

Can you install autojump globally, via your distro, so that you don't need to add the path first? Otherwise, you need to find a way to add that path without involving the shell.

rafli-sss commented 2 years ago

Thanks, it works!!!