Yes, I do recall explicitly responding to a query to make the browser the default (don't recall if I did this once or twice since it was years ago).

For now, removing (renaming) all 3 files

userapp- Icedove-EGPMWX.desktop,
userapp-Iceweasel-RYY0FY.deskto, and
mimeapps.list

has restored email link functionality with minimal effort. If this leads to other behavioral problems, will play with the file contents.

Appreciate knowing which files are implicated. Thanks very much for the feedback and explanations.

--
Rick Lutowski
r...@jreality.com
512-688-1675



On 02/10/2017 10:52 AM, Jens Reyer wrote:
control: clone -1 -2
control: retitle -1 icedove: transition old userapp .desktop file
control: retitle -2 firefox: transition old userapp .desktop file

tl;dr for the firefox and thunderbird maintainers:
The files
~/.local/share/applications/userapp-Icedove-*.desktop
~/.local/share/applications/userapp-Iceweasel-*.desktop
need to be transitioned for the new path of the Exec.  Tell me if you
need more help (patches).


On 02/07/2017 09:18 PM, Rick Lutowski wrote:
Hope this helps to isolate the problem.
Thanks for your quick feedback!


What happened is (these are sometimes only assumptions, I'm not in-depth
familiar with these packages):


Once upon a time you accepted icedove's and iceweasel's suggestion to
make them the default application for their tasks.

At that time:

* icedove created
   ~/.local/share/applications/userapp-Icedove-EGPMWX.desktop
   with the line[1]
   Exec=/usr/lib/icedove/icedove %u

* iceweasel created
   ~/.local/share/applications/userapp-Iceweasel-RYY0FY.desktop
   with the line[2]
   Exec=/usr/lib/iceweasel/iceweasel %u

* Then icedove and iceweasel each created entries for these in
   ~/.local/share/applications/mimeapps.list[3], which lists your
   personal preferences for default applications.

Now today your issue (icedove fails to open links) is because you
followed the transition from iceweasel to firefox.  Thus the specified
default app for weblinks /usr/lib/iceweasel/iceweasel doesn't exist anymore.



So the
~/.local/share/applications/userapp-{Icedove,Iceweasel}-*.desktop
files need to be transitioned.  For Rick's specific issue the iceweasel
one is relevant.


A1:
It's probably best to backup them and only make a minimal change in them.

A2:
Another option would be to also rename them. This would require a change
of mimeapps.list, too.  For this one needs to check both the deprecated
location ~/.local/share/applications/, and the modern one in ~/.config
(I'm still confused when which file is used by a Debian system today).
Maybe it's also necessary to explicitly trigger an update of the inverse
index of the .desktop files in mimecache.info.

A3:
Finally one could just backup and then delete the .desktop files
(current packages provide their desktop files in
/usr/share/applications/, so a new mimeapps.list entry doesn't require
the old .desktop files).  Again this would require a change of
mimeapps.list and mimecache.info.



Thunderbird has a wrapper script /usr/bin/thunderbird (linked to from
/usr/bin/icedove) which does a migration of some things if an old
icedove profile folder exists, and there's no new thunderbird profile
folder yet.  I now wonder if the fix should be:

B1:
in the conditional (one-time only) part of /usr/bin/thunderbird, or

B2:
(because testing users already went through this one-time transition) in
a separate new part, conditional on the existence of the old .desktop
file and its contents (e.g. grep -i icedove).

For thunderbird I suggest A1/B2.



I'm not familiar with what firefox did/does for the transition.  Maybe
it already does something (see my note in [3]), but then it didn't do it
in a way that worked for you.  I suggest to do something similar like
A1/B2 in /usr/bin/firefox.


Greets
jre



[1]
Rick's ~/.local/share/applications/userapp-Icedove-EGPMWX.desktop:
---
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/usr/lib/icedove/icedove %u
Name=Icedove
Comment=Custom definition for Icedove
----


[2]
Rick's ~/.local/share/applications/userapp-Iceweasel-RYY0FY.desktop:
----
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/usr/lib/iceweasel/iceweasel %u
Name=Iceweasel
Comment=Custom definition for Iceweasel
----
Note: I had a userapp-Firefox-1M35PY.desktop, but just deleted it
instead of investigating, because I was working on something else, see
#845334 for Wine.


[3]
I don't know when this changed, but nowadays (on a clean system with no
previous entries) firefox/thunderbird only create entries in
~/.config/mimeapps.list, which appears to use
/usr/share/applications/thunderbird.desktop and
/usr/share/applications/firefox-esr.desktop.
.
Rick's ~/.local/share/applications/mimeapps.list:
------
[Default Applications]
x-scheme-handler/mailto=userapp-Icedove-EGPMWX.desktop
message/rfc822=userapp-Icedove-EGPMWX.desktop
application/x-extension-eml=userapp-Icedove-EGPMWX.desktop
x-scheme-handler/http=userapp-Iceweasel-RYY0FY.desktop
x-scheme-handler/https=userapp-Iceweasel-RYY0FY.desktop
x-scheme-handler/ftp=userapp-Iceweasel-RYY0FY.desktop
x-scheme-handler/chrome=userapp-Iceweasel-RYY0FY.desktop
text/html=userapp-Iceweasel-RYY0FY.desktop
application/x-extension-htm=userapp-Iceweasel-RYY0FY.desktop
application/x-extension-html=userapp-Iceweasel-RYY0FY.desktop
application/x-extension-shtml=userapp-Iceweasel-RYY0FY.desktop
application/xhtml+xml=userapp-Iceweasel-RYY0FY.desktop
application/x-extension-xhtml=userapp-Iceweasel-RYY0FY.desktop
application/x-extension-xht=userapp-Iceweasel-RYY0FY.desktop

[Added Associations]
x-scheme-handler/mailto=userapp-Icedove-EGPMWX.desktop;
message/rfc822=userapp-Icedove-EGPMWX.desktop;
application/x-extension-eml=userapp-Icedove-EGPMWX.desktop;
x-scheme-handler/http=userapp-Iceweasel-RYY0FY.desktop;
x-scheme-handler/https=userapp-Iceweasel-RYY0FY.desktop;
x-scheme-handler/ftp=userapp-Iceweasel-RYY0FY.desktop;
x-scheme-handler/chrome=userapp-Iceweasel-RYY0FY.desktop;
text/html=userapp-Iceweasel-RYY0FY.desktop;
application/x-extension-htm=userapp-Iceweasel-RYY0FY.desktop;
application/x-extension-html=userapp-Iceweasel-RYY0FY.desktop;
application/x-extension-shtml=userapp-Iceweasel-RYY0FY.desktop;
application/xhtml+xml=userapp-Iceweasel-RYY0FY.desktop;
application/x-extension-xhtml=userapp-Iceweasel-RYY0FY.desktop;
application/x-extension-xht=userapp-Iceweasel-RYY0FY.desktop;
-----



Reply via email to