You are not logged in.

#1 2016-11-25 06:22:54

Alaanor
Member
Registered: 2016-01-07
Posts: 51

How to use ranger as default application

Hi,

When I use firefox and uploading a file, there is a file manager for selecting file to upload. But instead of the non keyboard centric default file manager of firefox, I'd would like to use ranger.

Ok cool, how can I achieve that ?

$ xdg-mime query default inode/directory

$ xdg-mime default ~/.local/share/applications/ranger.desktop  inode/directory
$ xdg-mime query default inode/directory
/home/MYUSER/.local/share/applications/ranger.desktop

Even with that, firefox continue to open his strange file manager (Or maybe I've installed one by mistake ?)

Last edited by Alaanor (2016-11-25 06:23:09)

Offline

#2 2016-11-25 08:29:50

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: How to use ranger as default application

Alaanor wrote:

When I use firefox and uploading a file, there is a file manager for selecting file to upload.

If I'm not mistaken, it's just GTK's file chooser dialog, not your file manager. So setting a default file manager will not change anything.
I'm not sure if you can configure Firefox to use something else for that, though...

Last edited by ayekat (2016-11-25 08:30:15)


pkgshackscfgblag

Offline

#3 2016-11-25 10:20:56

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: How to use ranger as default application

Someone has some experience developing firefox addon ? Maybe can I change the file upload action and execute ranger ?

Offline

#4 2016-11-25 19:00:02

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: How to use ranger as default application

ayekat wrote:
Alaanor wrote:

When I use firefox and uploading a file, there is a file manager for selecting file to upload.

.

I dont think Ranger will do this, however
Here is a handy function for quickly uploading files to share ..

#Upload-file | Usage : share /path/to/file.foo
share() {
  curl -F"file=@$*" https://0x0.st
}

Will be quicker than any browser extension.

Last edited by cirrus (2016-11-25 19:01:55)

Offline

Board footer

Powered by FluxBB