You are not logged in.

#1 2018-12-01 05:58:34

Frat_Papi
Member
Registered: 2018-05-02
Posts: 19

chrome show in folder

I use ranger file manager and had this bug for a while wondering if any of you could help me out, whenever I select "show in folder" after a file download in google-chrome-stable nothing pops up and I receive this

Usage: ranger [options] [path]

ranger: error: no such option: -e
Error: Must run ranger from terminal
/usr/bin/xdg-open: line 881: x-www-browser: command not found

I checked the xdg-open script and its just a generic .desktop opener, but my ranger.desktop file doesn't execute with a -e option, any help would be appericated.

Offline

#2 2019-02-12 19:24:00

gheorghe
Member
Registered: 2019-02-12
Posts: 2

Re: chrome show in folder

I have the same issue when trying to open folders from chromium:

Error: Must run ranger from terminal
/usr/bin/xdg-open: line 881: x-www-browser: command not found

I am still looking for ways to get ranger to work.

Last edited by gheorghe (2019-02-12 19:25:22)

Offline

#3 2019-02-12 19:49:10

gheorghe
Member
Registered: 2019-02-12
Posts: 2

Re: chrome show in folder

[SOLVED]
xdg-open somehow ignored the "Terminal" flag in ranger.desktop, so you can overwrite that with your own. I use xfce4-terminal, so for me the solution was to create ~/.local/share/applications/ranger.desktop and add the following to it:

[Desktop Entry]
Type=Application
Name=ranger
Comment=Launches the ranger file manager
Icon=utilities-terminal
Terminal=false
Exec=xfce4-terminal -x ranger
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;

Last edited by gheorghe (2019-02-12 19:50:47)

Offline

Board footer

Powered by FluxBB