QtPass icon indicating copy to clipboard operation
QtPass copied to clipboard

QGuiApplication's supported command-line parameters are taken for a password search request

Open wwp opened this issue 2 years ago • 1 comments

Describe the bug When passing QGuiApplication's supported command-line parameters (at least in Linux), QGuiApplication behaves as expected (-geometry is applied, etc.) but Qtpass ends up treating those parameters as if they were search arguments.

To Reproduce Steps to reproduce the behavior:

  1. run this from a terminal $ qtpass -geometry 200x100 All other command-line params managed by QGuiApplication do the same (-qwindowtitle, ..).
  2. the main window geometry is set as expected to 200x100
  3. qtpass searches for a "-geometry 200x100" password.

Expected behavior Command-line arguments supported by QGuiApplication should be treated then removed from the command-line (or ignored when Qtpass tread then after), not taking them for a password search request.

Desktop

  • 1.3.2 / 1.4.0-rc2 compiled from the sources using Qt5 on a Rocky Linux 9 x86_64.

wwp avatar Sep 14 '23 07:09 wwp