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

#4 2020-09-20 07:51:12

dirdi
Member
Registered: 2020-02-11
Posts: 2
Website

Re: chrome show in folder

@gheorghe's workaround solves the issue, but only for ranger. One has to do edit the .desktop file for every terminal application one ones to start through xdg-open.

This is a long standing xdg-open bug, see: https://gitlab.freedesktop.org/xdg/xdg- … /issues/84 The bug report contain a patch one could apply to xdg-open to fix it for all terminal applications. In the meantime xdg-open was forked to enable support for terminal applications (https://github.com/krystiancha/xdg-utils/) and the fork is available an an AUR: https://aur.archlinux.org/packages/xdg- … -true-git/

Offline

Board footer

Powered by FluxBB