Jump to content
  • 0
DaveL60

Wrong program for "Show In Folder"

Question

I use Chrome as my primary browser, and have installed PCFileMan as my preferred file manager.  When I downloaded a file with Chrome, right-clicked on the file in the browser and picked "Show In Folder", instead of the file manager Bodhi loaded Ephoto, aimed at the download directory. Can someone point me at where to fix this behavior? I've got zero idea.  Thanks,

 

DaveL

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0

I am not really sure if you are using Chrome or chromium-browser  but regardless I think maybe the problem is xdg-open does not have a mime-type for "application/x-directory" registered by default on Bodhi3.0 or even other debian/ubuntu systems. Chrome and related browsers seem to be using xdg-open to open files in a file browser ... based on results I found googling around.

 

Anyways close Chrome and then open a terminal: and Install mimeinfo-perl on your system

sudo apt-get install libfile-mimeinfo-perl

Now use the mimeopen command to open some random folder on your system:

mimeopen -d /path/to/folder

 When mimeopen runs, it will list the options for setting the default application to open the application/x-directory mime type. Simply choose pcmanfm which hopefully is listed.

 

NOTE: I don't use chrome/chromium at all nor have I have I looked thru its source code and my testing of this was in virtual box on a default install of bodhi3.0 so no guarantees...

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

i think mimeopen needs to be run with sudo as well to change the default behaviour...

 

Sudo is not needed for a single user system as the command run as an ordinary user only changes the association for that user. Running the command as root should change the association for all users ')

Share this post


Link to post
Share on other sites
  • 0

Really liking Bodhi 3.1.1 for the most part, but...

 

Having the same problem across multiple programs.

Chrome

Firefox

Uget

and others.

 

open containing folder

show in folder

 

no matter what type of file is involved, all launch Ephoto.

 

If I uninstall Ephoto, selecting 'open containing folder' launches Firefox.

 

Tried the miimeopen trick with several different directories, but I always get 'Could not determine mimetype for file' and never get asked what program should be chosen.

 

There must be somewhere one can select what applications launch in certain circumstances.

 

This worked fine in 2.4.0 ?

Share this post


Link to post
Share on other sites
  • 0

Found a way to fix this finally.

 

Open PCManFM

Right Click on a Folder, any Folder

select Open With...

select PCManFm as the program to use

check the box for "Set selected application as default action for this file type"

click OK.

 

Now Chrome and other applications with "open folder" options will open PCManFM and view the folder instead of launching EPhoto.

Share this post


Link to post
Share on other sites
  • 0

Open PCManFM

Right Click on a Folder, any Folder

select Open With...

select PCManFm as the program to use

check the box for "Set selected application as default action for this file type"

click OK.

 

BTW, Bodhi 4 and the same problem. How were you able to do it?

I tried this solution but PCManFM is NOT SHOWED in Applications list, only in the main menu under the name "Places". So I cannot select it in "Open with" because only Applications are listed there.

Any suggestions?

Share this post


Link to post
Share on other sites
  • 0

No, this hasn't helped. From Midori it still opens in wrong application (in File Roller).

 

Midori is different from Chrome (which is what this thread is about). In midori there are file type options in the preferences. 

Share this post


Link to post
Share on other sites
  • 0

Well, while we see folder type is explicitiely bound to PCManFM, Midory presumably treat them as "unknown".

 

v3wvYk8.png

And we still missing PCManFM in the app list we can choose from, and unfortunately there is no way to explicitely enter command here.

 

kcoBBin.png

 

My steps?

Share this post


Link to post
Share on other sites
  • 0

Create a personal launcher for PCManFM if you need one. You can also get the default one back by running the command:

 

 

sudo apt-get install --reinstall pcmanfm

Share this post


Link to post
Share on other sites
  • 0

 

Create a personal launcher for PCManFM if you need one. You can also get the default one back by running the command:

sudo apt-get install --reinstall pcmanfm

 

Unfortunately this didn't help. It seems file associations are stored in some file and reinstall cannot change them. But in what file?

Share this post


Link to post
Share on other sites
  • 0

I believe that app list for midori is for downloaded files with explicit file extensions like .pdf or .docx 

Share this post


Link to post
Share on other sites
  • 0

I believe that app list for midori is for downloaded files with explicit file extensions like .pdf or .docx 

 

But PDF per se opens perfectly if I double-click it. The problem persists particularly with "Show if folder" function.

Share this post


Link to post
Share on other sites
  • 0

Finally solved this by purging file-roller completely and reinstalling again. After that App prompt appeared again and I was able to select pcmanfm again.

Interesting that even TOTAL erasing of all midori configs across all filesystem haven't helped. Some bizarre stuff.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×