From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 191826DE12F3 for ; Mon, 21 Nov 2016 20:26:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.120, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yLSStWWW2xF6 for ; Mon, 21 Nov 2016 20:25:59 -0800 (PST) X-Greylist: delayed 43399 seconds by postgrey-1.35 at arlo; Mon, 21 Nov 2016 20:25:59 PST Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by arlo.cworth.org (Postfix) with ESMTPS id B2E536DE12E8 for ; Mon, 21 Nov 2016 20:25:59 -0800 (PST) Received: from homiemail-a43.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by hapkido.dreamhost.com (Postfix) with ESMTP id 0E8099B872 for ; Mon, 21 Nov 2016 08:22:40 -0800 (PST) Received: from homiemail-a43.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTP id 6FE546003031; Mon, 21 Nov 2016 08:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=picnicpark.org; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s= picnicpark.org; bh=M4xaxTmgUf6YAF0iicTZDq/MlqY=; b=dUXKBESclCzzj ei2f19dItQJbr4lWGeY0g1FIhZVLowmom5Ane+c9OUtTY0rcfs4BWSAsahbbMpKl 37s8fx9WE03KhMoYghU1ibDQIOC16abDRVdJtWu6rnO8aNThyqPo7hsNwE//xeBT qqOQ195r88vn8jEtaBzaGmH0Nvque4= Received: from gw.picnicpark.org (108-225-17-54.lightspeed.sntcca.sbcglobal.net [108.225.17.54]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mailer@picnicpark.org) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTPSA id 4AAE76003030; Mon, 21 Nov 2016 08:22:38 -0800 (PST) Received: from kea-tablet.picnicpark.org (gw.picnicpark.org [127.0.0.1]) by gw.picnicpark.org (Postfix) with ESMTPSA id 266B412A0174; Mon, 21 Nov 2016 08:22:27 -0800 (PST) Message-ID: <1479745328.31533.2.camel@picnicpark.org> Subject: Re: [PATCH 6/8] emacs/desktop: update to use notmuch-emacs-mua and handle mailto From: Keith Amidon To: Jani Nikula , David Bremner Cc: Notmuch Mail Date: Mon, 21 Nov 2016 08:22:08 -0800 In-Reply-To: References: <1919c3e30523cce99d0a545ad9c37a792ac41dae.1478205331.git.jani@nikula.org> <87a8ctukvp.fsf@tethera.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2016 04:26:01 -0000 On Mon, 2016-11-21 at 13:44 +0200, Jani Nikula wrote: > I wonder if there's a way to define different Execs for clicking on > the icon and handling mailto. The desktop file format specification implies you can just add an extra context entry. For reference, the full specification is here: https://specifications.freedesktop.org/desktop-entry-spec/latest/ Something like this seems like what the spec suggests: [Desktop Entry] Name=Notmuch Emacs Client GenericName=Email Client Comment=Emacs based email client Exec=emacs -f notmuch Icon=emblem-mail Terminal=false Type=Application Categories=Network;Email; [Create Message] Name=Notmuch Emacs Create Message Exec=notmuch-emacs-mua %u MimeType=x-scheme-handler/mailto; However, this did not seem to work when I tried it out in my gnome session. I'm pretty sure creating two separate desktop files (duplicating some of the fields) would work. --- Keith