David Bremner <da...@tethera.net> writes: > Nicholas D Steeves <s...@debian.org> writes: > >> 1. Set Notmuch as the default application for email (or URI handler) >> 2. Navigate to the BTS in a web browser like Firefox >> 3. Find a bug, and click on one of the reply links >> 4. Emacs opens in message-mode rather than notmuch-message-mode > > OK, this seems like a completely different bug report :).
:) Maybe! I also wonder if I simply assigned it to the wrong package. > Unfortunately also not really one I know much about, as I don't use > Gnome (I assume step 1 above means set default in gnome?). It's not GNOME specific (I use KDE), but given that a desktop file is used, I wonder if the nature of this bug is more of an XDG thing. For the purposes of this bug I'll attempt to reproduce using my laptop rather than desktop. > I guess my first question is if you can duplicate the problem from the > command line. I tried > > % notmuch-emacs-mua --hello mailto:brem...@debian.org > > It seems to do the right thing. Hmm, % xdg-open mailto:brem...@debian.org also seems to do the right thing. > Maybe your mailto URLs are more complicated? Anyway, if you can > duplicate the problem without requiring gnome or firefox, that would be > helpful. Good hypothesis! The following mailto link is copied from the BTS via eww-view-source, it points to your most recent email, which is the the one that this email--my reply--is replying to: xdg-open "mailto:1042...@bugs.debian.org?References=%3C169101992716.3310278.2992723615742697826.reportbug%40bras-base-mtrlpq0313w-grc-19-69-156-163-190.dsl.bell.ca%3E%0A%20%3C87fs517z32.fsf%40tethera.net%3E%20%3C87tttguclr.fsf%40digitalMercury.freeddns.org%3E%0A%20%3C87bkfo8mpa.fsf%40tethera.net%3E&body=On%20Thu%2C%2003%20Aug%202023%2007%3A06%3A09%20-0300%20David%20Bremner%20%3Cdavid%40tethera.net%3E%20wrote%3A%0A%3E%20Nicholas%20D%20Steeves%20%3Csten%40debian.org%3E%20writes%3A%0A%3E%20%0A%3E%20%3E%201.%20Set%20Notmuch%20as%20the%20default%20application%20for%20email%20%28or%20URI%20handler%29%0A%3E%20%3E%202.%20Navigate%20to%20the%20BTS%20in%20a%20web%20browser%20like%20Firefox%0A%3E%20%3E%203.%20Find%20a%20bug%2C%20and%20click%20on%20one%20of%20the%20reply%20links%0A%3E%20%3E%204.%20Emacs%20opens%20in%20message-mode%20rather%20than%20notmuch-message-mode%0A%3E%20%0A%3E%20OK%2C%20this%20seems%20like%20a%20completely%20different%20bug%20report%20%3A%29.%0A%3E%20%0A%3E%20Unfortunately%20also%20not%20really%20one%20I%20know%20much%20about%2C%20as%20I%20don%27t%20use%0A%3E%20Gnome%20%28I%20assume%20step%201%20above%20means%20set%20default%20in%20gnome%3F%29.%0A%3E%20%0A%3E%20I%20guess%20my%20first%20question%20is%20if%20you%20can%20duplicate%20the%20problem%20from%20the%0A%3E%20command%20line.%20I%20tried%0A%3E%20%0A%3E%20%25%20notmuch-emacs-mua%20--hello%20mailto%3Abremner%40debian.org%0A%3E%20%0A%3E%20It%20seems%20to%20do%20the%20right%20thing.%20%0A%3E%20%0A%3E%20Maybe%20your%20mailto%20URLs%20are%20more%20complicated%3F%20Anyway%2C%20if%20you%20can%0A%3E%20duplicate%20the%20problem%20without%20requiring%20gnome%20or%20firefox%2C%20that%20would%20be%0A%3E%20helpful.%0A%3E%20%0A%3E%20%0A%3E%20d%0A%3E%20%0A%3E%20%0A&subject=Re%3A%20Bug%231042928%3A%20Please%20include%20example%20handler%20for%20mailto%3A%20URIs&In-Reply-To=%3C87bkfo8mpa.fsf%40tethera.net%3E" ...and that succeeds. Finally, it works properly in Firefox on my laptop...oh no, this is starting to look like a Heisenbug. I'm baffled why notmuch-message-mode opens correctly on my laptop, while my desktop opens message-mode. So what are the differences between the systems? My desktop had the dummy transitional package "notmuch-emacs" installed. Of course, that shouldn't make a difference one way or another, but I've removed it anyway. How can I trace Emacs, to see what data it receives as a startup argument, and to see what it does with it? I'd like to see if I can eliminate the "the desktop environment is sending a bad URI" hypothesis. Best, Nicholas
signature.asc
Description: PGP signature