Page MenuHomePhabricator

Enlightenment Application Run Error
Closed, InvalidPublic

Description

A very long time ago, I had FoxitReader.
If I try to open a PDF from Firefox, then E throws up a window about not being able to open FoxitReader.
Note, Firefox is set to use evince as the default application.
I tracked down the FoxitReader.desktop file in .local/share/applications/FoxitReader.desktop and deleted it.

Now, E tries to open PDFs with ephoto, which was installed to /usr/local/bin/ephoto. I wasn't using it, so I deleted that, too.

But E still tries to open ephoto anyway. I've checked Default Applications.
application/pdf is set to Document Viewer (which should be evince).

Versions:

Name : enlightenment-git
Version : 0.23.0.23606.ged924301b-1
Build Date : Fri 19 Jul 2019 11:03:04 PM EDT
Install Date : Fri 19 Jul 2019 11:35:01 PM EDT

Name : efl-git
Version : 1.22.99.62697.gbf01c2382a-1
Build Date : Fri 19 Jul 2019 10:56:53 PM EDT
Install Date : Fri 19 Jul 2019 11:03:02 PM EDT

abyomi0 created this task.Jul 24 2019, 3:16 PM

when u want to open a file in EFM ... then right click and "open with... other application" and select
whatever you used last is remembered and efm will keep using that until u open it with something else. default apps under the pdf mimetype should be showing what efm will use... which is what enlightenment_open will use... but i don't know how its being opened - you are saying e opens it so i assume efm in e... (which is part of e)

when u want to open a file in EFM ... then right click and "open with... other application" and select
whatever you used last is remembered and efm will keep using that until u open it with something else. default apps under the pdf mimetype should be showing what efm will use... which is what enlightenment_open will use... but i don't know how its being opened - you are saying e opens it so i assume efm in e... (which is part of e)

So, changing the application for PDF to evince in EFM works. It opens evince. Or Okular, whatever I choose from the Other Application Menu.
Attempting to open the same file via Firefox still results in the Application Run Error, though.

let me guess... firefox uses xdg-open. try use xdg-open on the file?

oh back back to the original issue - if you remove ephoto but keep the ephoto desktop around... yes - you'll get issues like that... there is a "data file" saying ephoto exists and how to run it. e tries to run it... it fails as you removed the binary. not surprising... :)

let me guess... firefox uses xdg-open. try use xdg-open on the file?

xdg-open opens the PDF using evince.

oh back back to the original issue - if you remove ephoto but keep the ephoto desktop around... yes - you'll get issues like that... there is a "data file" saying ephoto exists and how to run it. e tries to run it... it fails as you removed the binary. not surprising... :)

yeah, that makes sense.

then i don't know what firefox is doing. it's not using the xdg ~/.config/mimeapps.list which is now these days the modern place to store default applications. e will write them there. the old one is ~/.local/share/applications/defaults.list but that changed quite a while back. xdg-open is doing the right thing. efm it doing the right thing. e stores things in the new location. it will at some point even upgrade your config and copy it over from the old to the new... so i don't know... you seem to have a firefox problem i think. do you have an old defaults.list file? does it have different content? is firefox not even reading these files at all and ONLY using the desktop database and choosing something for you?

abyomi0 closed this task as Invalid.Aug 2 2019, 9:22 AM

then i don't know what firefox is doing. it's not using the xdg ~/.config/mimeapps.list which is now these days the modern place to store default applications. e will write them there. the old one is ~/.local/share/applications/defaults.list but that changed quite a while back. xdg-open is doing the right thing. efm it doing the right thing. e stores things in the new location. it will at some point even upgrade your config and copy it over from the old to the new... so i don't know... you seem to have a firefox problem i think. do you have an old defaults.list file? does it have different content? is firefox not even reading these files at all and ONLY using the desktop database and choosing something for you?

There might be something, somewhere messing with my default applications (at least whenever I'm dealing with Firefox).
I cleared the locations of the mimetype.list and firefox opens zathura, despite having now having been reset and defaulting to Preview in Firefox.
EFM opens evince, like it should.

Doesn't look like E was ever causing a problem here.

hmmm. well it may be firefox needs to chase this up in some way... but i am pretty sure efm/e are doing the right thing... :) i'd love to know if they are not though.