Skip to content

Improvement for Keepass #213

Open
Open

Description

@JonRFleming

Checklist

  • I performed a search in the issue tracker to see if my suggestion has already been asked/answered by somebody else.

Improvement for Keepass to make opening a database easier in PE and keep the window on screen.

// Config - Keep this after any config changes so if the users wants to provide their own config we don't overwrite it.
If,Not,%fb_IncludeConfigDir%,Equal,"",If,ExistDir,%fb_IncludeConfigDir%,Begin
  Echo,"Processing additional include files..."
  FileCopy,"%fb_IncludeConfigDir%\*.*","%TargetPrograms%\%ProgramFolder%"
  // Fix last used file
  If,ExistFile,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",Begin
    XMLRead,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/Application/LastUsedFile/Path,%KDBXPAth%
    StrFormat,FileName,%KDBXPAth%,%KDBXName%
    XMLUpdate,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/Application/LastUsedFile/Path,%PEPrograms%\%ProgramFolder%\Database\%KDBXName%
    // Make sure it's on screen
    XMLUpdate,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/MainWindow/X,25
    XMLUpdate,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/MainWindow/Y,50
    XMLUpdate,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/MainWindow/Width,700
    XMLUpdate,"%TargetPrograms%\%ProgramFolder%\KeePass.config.xml",/Configuration/MainWindow/Height,800
  End
End

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions