ranger-autojump icon indicating copy to clipboard operation
ranger-autojump copied to clipboard

Crash when launched via desktop

Open rafli-sss opened this issue 2 years ago • 3 comments

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

rafli-sss avatar Aug 05 '22 14:08 rafli-sss

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?

fdw avatar Aug 05 '22 15:08 fdw

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

rafli-sss avatar Aug 06 '22 04:08 rafli-sss

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.

fdw avatar Aug 06 '22 07:08 fdw

Thanks, it works!!!

rafli-sss avatar Aug 07 '22 04:08 rafli-sss