retitle 514414 does not start minimized if no database specified on command line severity 514414 minor stop
Torsten Werner <twer...@debian.org> writes: > it would be nice to document the command line arguments in the man > page Feel free to write a real manpage. I'd gladly include it in the package. > and it would be even better if they would really work. > > $ keepassx -min > > ask me for my password and after entering it, keepassx opens its main > windows instead of starting minimized. after checking the code, the parameters are only respected if also a password database is given on the command line. Check mainwindow.cpp, around line 100. This is what I've come with after a short code inspection: === modified file 'src/mainwindow.cpp' *** src/mainwindow.cpp 2008-10-02 07:26:10 +0000 --- src/mainwindow.cpp 2009-02-13 10:20:00 +0000 *************** *** 110,115 **** --- 110,118 ---- if(file.exists()){ QString f = QDir::cleanPath(QDir::current().absoluteFilePath(config->lastFile())); showWindow = !config->startMinimized(); + // if the user has cared to specify -min on the command line, we better respect it + if (!ArgMin) + showWindow = false; if (config->startLocked()) fakeOpenDatabase(f); else -- Gruesse/greetings, Reinhard Tartler, KeyID 945348A4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org