Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads on firefox take ephoto as file manager #97

Open
drdhaval2785 opened this issue May 3, 2019 · 4 comments
Open

Downloads on firefox take ephoto as file manager #97

drdhaval2785 opened this issue May 3, 2019 · 4 comments

Comments

@drdhaval2785
Copy link

After I download a stuff on firefox and click on 'Open containing folder' it opens up ephoto instead of PCManFM.
Does it have something to do with Bodhi / Moksha or my own computer settings?

I installed and uninstalled nautilus some months back. May it be an issue?

@drdhaval2785
Copy link
Author

@drdhaval2785
Copy link
Author

@thewaiter any pointer in this regards? This seems to be a more substantial issue.

@thewaiter
Copy link
Collaborator

Let me have some time. Need to look at that...

@rbtylee
Copy link
Collaborator

rbtylee commented May 4, 2019

This is not a moksha issue. Perhaps one could make a claim it is a Bodhi issue but even then I would be skeptical of such a claim. It is a firefox issue and has to do with how firefox deals with file associations.

I don't know what software you have installed and or uninstalled since you presumably installed Bodhi. But anyway...

In your home folder there should be a hidden directory .local
Open it and see if there is a a folder applications inside. If not create one.
Now open the applications folder, is there a file: defaults.list there?
if not create one. Now open the file defaults.list in a text editor.
If you created it anew simply add

[Default Applications]
inode/directory=pcmanfm.desktop

and save the file.

If said file already exists, add the line

inode/directory=pcmanfm.desktop

At this point I would look for any other line that starts with inode/directory and delete it.

Save this file.

Firefox should now open the downloads folder using pcmanfm.

For the record the reason Firefox was using ephoto is because the ephoto.desktop file has the line

MimeType=inode/directory;image/png;image/jpeg;image/pjpeg;image/x-xpixmap;image/tiff;image/svg+xml;image/svg+xml-compressed;image/gif;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/bmp;image/x-bmp;image/x-tga;image/vnd.wap.wbmp;image/webp;image/vnd.microsoft.icon;image/ico;image/x-ico;image/x-win-bitmap;image/vnd.adobe.photoshop;image/x-psd;application/pdf;application/x-pdf;image/pdf;application/postscript;image/x-xcf;image/x-compressed-xcf;

This list should be every file type ephoto can open. Firefox is picking it up to open folders because of the inode/directory thing in it. As to why it is not picking up on pcmanfm whose desktop file also contains the inode/directory string. I am uncertain. Perhaps it just goes thru the applications installed and picks the first one it finds. It is not really worth my time to go thru the code for firefox and the libraries it uses to find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants