From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76213 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Guns and Privacy : sample use case/tutorial effort Date: Tue, 01 Feb 2011 13:20:20 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: <9ilj20ndyz.fsf@news.eternal-september.org> References: <87sjw8t1l1.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296563203 17377 80.91.229.12 (1 Feb 2011 12:26:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 12:26:43 +0000 (UTC) Cc: ding@gnus.org To: Philipp Haselwarter Original-X-From: ding-owner+M24565@lists.math.uh.edu Tue Feb 01 13:26:39 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkFJa-0005nM-LR for ding-account@gmane.org; Tue, 01 Feb 2011 13:26:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PkFJ4-0006oi-Jt; Tue, 01 Feb 2011 06:26:02 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PkFJ3-0006oY-2I for ding@lists.math.uh.edu; Tue, 01 Feb 2011 06:26:01 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PkFJ1-0006Hd-Mq for ding@lists.math.uh.edu; Tue, 01 Feb 2011 06:26:00 -0600 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PkFJ0-0003Qj-NX for ding@gnus.org; Tue, 01 Feb 2011 13:25:58 +0100 Original-Received: by bwz12 with SMTP id 12so6424323bwz.17 for ; Tue, 01 Feb 2011 04:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:in-reply-to:date :organization:message-id:references:user-agent:mime-version :content-type; bh=sK37EIzagkbXfEYXaNpBfJ393FrNHI+6dZtRu8aIazs=; b=ejJ9TsJybJTa/FWSRvxrz7wP0WwIoe0/s2G8n6ky6nmcPZF0oRvBb32n3ow7X1zwTx oesLuOfj+eMgeg2Wwk2Nkw6b89WBqggklmJTMPzVOFWPeAWS7PXY/TEykFnuBQTstonN YsAeS1pUNGdHz6n2Op6LwpqWJdVO6z/Io+Ytg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:date:organization:message-id :references:user-agent:mime-version:content-type; b=omZdRnsPL/0hIM0s2lZ9pmXXxCo1nxl7AkwXZGwSANXqgLOsBdmI6cGDm3sZIOyDcS qiIfjczT9ZgYD2iiw9xolgNU6LiNcXBAwz5OCTVDQMtguyfOM4AIyLUWuExKY3QVZGE4 vfNYBt1nrE0BPm/Q68Rxx+SLrBn0/6lzTHLEU= Original-Received: by 10.204.103.196 with SMTP id l4mr1689089bko.209.1296563152962; Tue, 01 Feb 2011 04:25:52 -0800 (PST) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id q18sm10920502bka.15.2011.02.01.04.25.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 04:25:51 -0800 (PST) In-Reply-To: <87sjw8t1l1.fsf@nzebook.haselwarter.org> (Philipp Haselwarter's message of "Tue, 01 Feb 2011 12:51:22 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76213 Archived-At: Philipp Haselwarter writes: > Richard Riley writes: > > ---8<---[snipped 61 lines]---8<--- >> >> The loading of this file would cause emacs or the system to prompt you >> for a password to decrypt the file if the agent (gpg-agent) or emacs >> hasnt already cached the password for that key. This prompt can be an >> issue if you're using the emacs daemon especially if starting the >> process at system login. When to prompt? One nice way is to only load >> the gpg file when you create an emacs frame. e.g >> >> ,---- >> | (defun load-secure-config(frame) >> | (require 'my-config "my-config.gpg")) >> | >> | (add-hook 'after-make-frame-functions 'load-secure-config) >> `---- >> >> Here we see that the private configuration information is only loaded and >> decrypted when you actually bring up an emacs frame - generally that >> would be sufficient in the case of gnus. > > Just wondering, how does this prevent emacs from prompting when there's > no frame? This is aimed at the initial load : it only loads after the initial frame. It then assumes that the password is cached. Clearly if the password is then needed again (cache expiry) in something involving gnus then there is generally a frame available anyway. > > I used to start emacs-daemon on system start, and ran into this problem, > but that was in conjunction with desktop.el. Opening pdf's asks if you I stopped using desktop.el for related reasons.