Menu

#1185 Linux: (Some) command line options not working

v1.0_(example)
closed
None
1
2014-07-15
2014-05-12
yshirman
No

I would like to start pwsafe on login by using -s or -m option.
Actually, I do not see what is the difference between the two: -s should start minimized and without database while -m is equivalent to -c (no prompting for database) plus minimized.
In any case they do not seem to be working on linux:
1. -m starts with database selection dialog (no database is selected). Once database is selected and password added, pwsafe window is opened. So behavior is exactly the same as -c
2. -s does not seem to have any effect: pwsafe starts normally with database selected and prompt for a password.

If this bug will be fixed, I also have a feature request: I think a really useful command line option would be to start minimize without password prompt but with the database selected (while closed). I find it convenient to have pwsafe in the tray all the time but locked for security. It would be nice to have it there automatically on login. But because I can't have it start minimized (preferrably with a default/last database selected), I have to start it manually for the first use.

Discussion

  • yshirman

    yshirman - 2014-05-12

    Looking briefly at the source code, it appears that silent and minimized options are not yet implemented on Linux. These options are parsed and there are some commented lines in src/ui/wxWidgets/pwsafeapp.cpp containing function calls like, for example, "dbox.SetStartSilent(true);" but dbox.SetStartSilent is only defined in src/ui/Windows/DboxMain.{cpp,h}

    Any chance the implementation of this could be completed on linux?

     
  • Rony Shapiro

    Rony Shapiro - 2014-05-13
    • summary: (Some) command line options not working --> Linux: (Some) command line options not working
     
  • Rony Shapiro

    Rony Shapiro - 2014-05-23

    Fixed in commit 2388355, will be in next release.

     
  • Rony Shapiro

    Rony Shapiro - 2014-05-23
    • status: open --> pending
    • assigned_to: Rony Shapiro
     
  • yshirman

    yshirman - 2014-05-24

    Thanks, there are still one issue with "-s" option: trying to open a file that was previously open gives an error message: "That file is already open". Removing the .pwsafe directory seems to allow to open the file once, but then the problem comes back.

     
  • Rony Shapiro

    Rony Shapiro - 2014-05-24

    Yeah, I noticed the '-s' issue. Working on it.

     
  • Rony Shapiro

    Rony Shapiro - 2014-05-24

    -s now seems to work correctly (commit c144c7f)

     
  • yshirman

    yshirman - 2014-05-24

    Everything works for me now. Thanks

     
  • Rony Shapiro

    Rony Shapiro - 2014-07-15
    • status: pending --> closed
     

Log in to post a comment.