#1136 [Linux, 0.92] Options (preferences) are not saved

v1.0_(example)
open
nobody
None
9
2015-08-15
2013-10-24
No

pwsafe does not seem to save its preferences when there's no ~/.pwsafe/pwsafe.cfg file. After creating an empty pwsafe.cfg, options are saved.

System is Fedora Linux, pwsafe built from source 0.92beta.

Discussion

  • Johan Vromans

    Johan Vromans - 2013-10-24

    Steps to reproduce:
    - remove any existing ~/.pwsafe
    - start pwsafe
    - create a new database (use the default, ~/.pwsafe/pwsafe.psafe3)
    - change some options, e.g. no system tray, edit entry on double click
    - File > Quit
    Now there's a folder ~/.pwsafe containing pwsafe.psafe3 and pwsafe.plk, but no pwsafe.cfg.

     
  • Saurav Ghosh

    Saurav Ghosh - 2013-11-19

    I just tried your steps on Ubuntu 12:04, and pwsafe did create a new ~/.pwsafe/pwsafe.cfg file with all my new settings. Can you please try with the latest sources from git repository? Something might have fixed this already.

     
  • Johan Vromans

    Johan Vromans - 2013-11-19

    "Saurav Ghosh" sauravg@users.sf.net writes:

    I just tried your steps on Ubuntu 12:04, and pwsafe did create a new
    ~/.pwsafe/pwsafe.cfg file with all my new settings. Can you please try
    with the latest sources from git repository? Something might have
    fixed this already.

    I cannot reproduce the problem with git
    7488e042083970f178df58de9d0ec63205074595 so it did probably get fixed
    already.

    Thanks.

     
  • JP Vossen

    JP Vossen - 2014-04-19

    I experienced this using passwordsafe-ubuntu-12.04-LTS-0.92BETA.amd64.deb on 3 out of 4 Ubuntu 12.04 machines, but I can't reproduce it. It was highly consistent...until it wasn't and I don't know what changed. Now it works no matter what I do, including deleting the ~/.pwsafe/pwsafe.cfg file.

     
  • Johan Vromans

    Johan Vromans - 2015-08-15

    0.96 BETA 3 -- I'm having this problem again. Apparently, pwsafe requires ~/.pwsafe to be a plain directory. In my setup, ~/.pwsafe is a symlink to ~/.config/pwsafe so pwsafe refuses to use it -- as config dir.
    (It has no problems using it as database dir.)

    It this restriction intentional? If not, please change 'lstat' in createuserprefsdir in src/os/linux/dirs.cpp to a 'stat'.

    Related: If pwsafe rejects the config dir, it tries the directory the binary resides in. So it tries to create /usr/bin/pwsafe.cfg which fails due to permissions. However, no message is shown when saving the config fails.

     
    Last edit: Johan Vromans 2015-08-15

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks