After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304569 - Authorize Password Access preference not remembered
Authorize Password Access preference not remembered
Status: RESOLVED WONTFIX
Product: seahorse-plugins
Classification: Applications
Component: Agent
unspecified
Other Linux
: High major
: ---
Assigned To: seahorse-plugins-maint
seahorse-plugins-maint
gnome[unmaintained]
: 496393 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-05-17 19:33 UTC by Jim Pharis
Modified: 2020-06-06 08:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against weirdness - see above (1.30 KB, patch)
2005-12-11 02:31 UTC, Adam Schreiber
reviewed Details | Review

Description Jim Pharis 2005-05-17 19:33:05 UTC
Version details: 0.9.0
Distribution/Version: Ubuntu Hoary

Start the seahorse-agent and sign a key. The Authorize Password Access dialog
will appear. Uncheck 'Always ask me before using a cached passphrase' and click
the Authorize button. Now, try singing another key. The Authorize Password
Access dialog appears again, with the 'Always ask me before using cached
passphrase' checked again.
Comment 1 Stef Walter 2005-05-19 02:26:59 UTC
Odd, this works for me. But it could be that the agent changes I recently
committed to the stable branch fix this. 
Comment 2 Adam Schreiber 2005-06-19 19:21:52 UTC
On my new laptop, I experienced this as well.  I installed from cvs-HEAD.  The
gconf key cache_authorize is being reset to TRUE when a request is being made. 
It is being set to FALSE correctly when the check box is unchecked.  A cursory
search failed to turn up the culprit in the code.
Comment 3 Adam Schreiber 2005-06-19 19:24:27 UTC
Killing and restarting seahorse-daemon seemed to fix the problem.  I'm not sure
how relevant it is, but I restarted seahorse-daemon to enable key sharing after
enabling it in preferences.
Comment 4 Adam Schreiber 2005-06-19 19:36:23 UTC
It seems like seahorse-daemon ignores changes to the preferences after its
start.  Changing the preference to always ask after the daemon has been started
has no affect, the daemon continues providing passphrases without asking. 
However, in this case the preference isn't set to FALSE every time the daemon is
queried.
Comment 5 Adam Schreiber 2005-08-12 15:19:15 UTC
This bug appears to extend to seahorse-daemon and key sharing in HEAD as well.
Comment 6 Adam Schreiber 2005-10-01 19:37:33 UTC
This appears to be fixed for me with HEAD, gconf-2.12, and GNOME 2.12.  Can
anyone confirm this?  

This leads me to believe it was a gconf bug that has since been fixed.
Comment 7 Adam Schreiber 2005-10-01 19:50:10 UTC
I may have spoke too soon.  It appears fixed when running seahorse-daemon
--no-daemonize from the commandline, but appears broken when running as a
daemon.  There appears to be a similar problem with photo ids not working when
seahorse is not run from the command line.
Comment 8 Gustavo Carneiro 2005-11-11 18:49:54 UTC
"me too" -- ubuntu breezy here, problem detected when running gajim.
Comment 9 Gustavo Carneiro 2005-11-11 19:32:46 UTC
Comment #4 is correct.  If the "ask permission" setting is true, it stays true
for the rest of the session.  If, however, the setting is changed to false
before the session starts, it stays false through that session.

This could be a weird bug in the notification loop caused by
seahorse_check_button_control_toggled changing a gconf setting, causing
seahorse_check_button_control_gconf_notify, causing a new
gtk_toggle_button_set_active call.  GConf is usually smart and breaks these
loops, but...
Comment 10 Adam Schreiber 2005-12-11 02:30:44 UTC
The fix for all of our weirdness related to being run from the command line or
not appears to be a regression in gpg in 1.4.2.
https://launchpad.net/products/gnupg/+bug/5570

Ryan Lortie (desrt) submitted a patch to the gpg devels which appear to have
been mangled by gpg-devel's list software.  I'll attach below.

I will test and report back.
Comment 11 Adam Schreiber 2005-12-11 02:31:49 UTC
Created attachment 55852 [details] [review]
Patch against weirdness - see above
Comment 12 Adam Schreiber 2005-12-11 03:02:52 UTC
I'm not quite sure if it's fixed this problem with the agent/daemon, but it has
fixed a problem with the photo IDs not working correctly unless seahorse was
executed from a terminal.
Comment 13 Adam Schreiber 2006-04-25 18:46:22 UTC
By commenting out the closeing and opening of the std file descriptors in seahorse-daemon.c I was able to insert some debug statements into the code to see some of what's going on.  So far, the seahorse_notify_add is adding the notification, but a negative id is returned.  A positive id is properly returned when seahorse-daemon is run with --no-daemonize.  More to follow concerning the SETTING_AUTH failing to refresh between the two cases. 
Comment 14 Adam Schreiber 2006-05-01 04:03:07 UTC
This is a complete and utter copout, but adding the --no-daemonize switch to seahorse-daemon in my startup programs seems to do the trick without any apparent side effects.  Of course, this behavior with the switch was known before, but I hadn't tested it with the session manager.
Comment 15 Stef Walter 2006-12-11 02:13:47 UTC
Adam, can you still duplicate this problem?
Comment 16 Adam Schreiber 2006-12-11 13:07:22 UTC
With 

ssh-agent dbus-launch --exit-with-session seahorse-daemon --execute 
gnome-session 

in my .xinitrc file, it appears that the GConf keys are propagating properly. 
Comment 17 Adam Schreiber 2007-11-13 12:38:08 UTC
*** Bug 496393 has been marked as a duplicate of this bug. ***
Comment 18 André Klapper 2020-06-06 08:52:11 UTC
seahorse-plugins is not under active development anymore:
https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/257

It had its last code changes many years ago:
https://gitlab.gnome.org/GNOME/seahorse-plugins/-/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.