Menu

#2692 Enable a Default Group to Always Open After Login

KeePass_2.x
closed
nobody
5
2023-08-12
2022-01-08
Steve
No

I would like to be able to declare one of my Groups ("Favorites") as the default that would appear whenever I am properly logged into my Keepass database. I have 8 or 9 Groups. Some are specialized but rarely used, another Group, "General" has the majority of entries but the use of the entries are only occasional. One, "Favorites" is used literally every time I use Keepass for about 10 or 15 websites/apps/mailboxes, etc. so I would like to have it always appear. It is not quite sufficient that Keepass will open with the group that was last edited/saved (that messes up the number of backups maximum I want to keep around anyway). I have not seen that the last Group used is the one that appears on next opening the database but that is not what I would prefer. I'd sure appeciate it if this change could be made. Thanks!

Discussion

  • Dominik Reichl

    Dominik Reichl - 2022-01-10
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2022-01-10

    This can already be realized using a tag. Right-click the group of your choice → 'Edit Group' → tab 'Properties' and add a tag called 'Favorite'. You can also assign this tag to individual entries, if you wish (in the entry dialog, tab 'Properties', or using the menus of the main window). Then, create a trigger that shows all entries having this tag when opening the database.

    Details can be found here:
    https://keepass.info/help/v2/entry.html#prp

    Thanks and best regards,
    Dominik

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-01-10

    I just reread this section of the help, and got very confused for a moment when I saw "click the three-keys button". I took me a while to realize that you're referring to a picture of keys on a keychain, and not keys on a keyboard - and this was compounded by the fact that the toolbar also has an icon showing keys on a keyboard (six of them, tho, not three). My point is that you should probably consider rephrasing this, to save others from experiencing this same sort of confusion.

     
  • Paul

    Paul - 2022-01-11

    click the three-keys button in the toolbar of the main window
    I see no confusion here.

    cheers, Paul

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-01-11

    Well, I'm happy for you that you don't, but my suggestion still stands, for the benefit of those of us who nonetheless find ambiguity in the dual meanings of the word "keys" - and are prejudiced into assuming that the fault in the documentation was in the number preceding the word, rather than in our more modern interpretation of the word itself.

    (And is it my imagination, or are the posts on here - by everyone - taking on a decidedly snarkier tone? It seems that 2022 is starting off badly all around.)

     

    Last edit: T. Bug Reporter 2022-01-11
  • Paul

    Paul - 2022-01-11

    Definitely your imagination. :)

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-01-12

    Wouldn't be the first time my imagination has led me astray. ☺

     
  • Dominik Reichl

    Dominik Reichl - 2022-01-12

    Thanks for the suggestion, but I don't want to replace "three-keys" by "keychain". A keychain is something to which keys can be attached. However, the three keys in the icon are not attached to anything; there simply are three keys, nothing else. This is difficult to see in case of a 16x16 icon, but it can be seen clearly for instance when running KeePass on higher DPI; see the file 'Ext/Images_App_HighRes/Nuvola/B48x48_KGPG_Key3.png' in the KeePass source code package.

    In order to make it clearer which button is meant, I've now added the icon to the documentation:
    https://keepass.info/help/v2/entry.html#prp

    Thanks and best regards,
    Dominik

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-01-12

    That works for me; the icon in the help is too small to tell what it is on my screen, but good enough to tell that it's not the keyboard icon. I'll shut up now. 😊

     
  • S Hoffmann

    S Hoffmann - 2023-07-08

    To all the adept and well-intenioned folks--and no snark here, I am grateful for your time and experience--who offered varied steps to go set up KeePass (Windows 10, v. 2.54 64-bit,) default on login to displacing the different sites under a favorite folder (e.g. used the most)...still, no success. I've tried each to the best I could interpret your steps.
    I don't know if there is a specific series of characters or code I need to enter when creating a tag (not my strong suite), or something else entirely...perhaps it's an organic issue behind my keyboard. :)
    In any event, I have no idea where to proceed from here on what must be a relatively simple fix. A solution is not critical, but this anomaly is a more than a little irritating.
    And, of course, a Skype or Zoom session with someone willing to participate would compromise the security of data I have on the screen. Audio-only might be an option, but I don't know how effective this would be, and it's a drain on someone else's time.
    It's a puzzler...
    But, again, thank you to the community of users that tried to help. I wish the best to you all!
    -- Paul

     
  • Paul

    Paul - 2023-07-09

    A tag is just text. Use anything you like.
    Once you have created the tag, use the "Find Entries" icon (3 keys) next to the "Find" icon to show the entries with the tag.
    If that works you can create a trigger to show those entries/group on open.

    cheers, Paul

     
  • S Hoffmann

    S Hoffmann - 2023-07-09

    And, indeed, this does work! But it is not what I was hoping to accomplish.
    What I wanted was for KeePass (after I enter my Master PW: to open the software) of default to displaying all my sites saved under a specific topic (Creative Sites) in a folder called (General). Ironically, and frustratingly, KeePass already does this...but defaults to a saved group of sites under a different topic area (Finance). I'm trying to figure out how to change this so on login I see displayed my saved sites for "Creative Sites."
    Please--and this applies to everyone reading this post--do not feel obligated to respond. I've tried (or attempted to decipher) the instructions for resolving this issue from several people, without success. If you are up for the challenge, however, please be as specific as possible about anything that requires typing in texual and/or coding-related information...as well as the order in which these actions should be taken. Feel free to use the named of the folder and the topical areas I used in the explanation above.
    (This is all very embarrassing as I have created databases and polls online, as well as, rendered illustrations, created and edited multi-image training modules, post-processed my photographic images for clients, added audio tracks to my videos, and and am designing/formatting two books for self-publication. In this case, I feel like a complete Luddite!)

     
  • Rookiestyle

    Rookiestyle - 2023-07-09

    If that works you can create a trigger to show those entries/group on open.

    I was successful using the tag approach:

    1. Right-click the group you want to be shown after opening the database
    2. "Edit group..."
    3. "Properties"
    4. Assign a tag to the group, e. g. displayonopen
    5. Create a trigger (Tools -> Triggers...) that shows entries with tag displayonopen when the database is opened

    Example of such a trigger (replace "testdb1.kdbx" with the name of your database)

    <?xml version="1.0" encoding="utf-8"?>
    <TriggerCollection xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Triggers>
            <Trigger>
                <Guid>qhrnMDXWAkKbhyAbqaSyVg==</Guid>
                <Name>dbopen</Name>
                <Events>
                    <Event>
                        <TypeGuid>5f8TBoW4QYm5BvaeKztApw==</TypeGuid>
                        <Parameters>
                            <Parameter>3</Parameter>
                            <Parameter>testdb1.kdbx</Parameter>
                        </Parameters>
                    </Event>
                </Events>
                <Conditions />
                <Actions>
                    <Action>
                        <TypeGuid>Qug3gXPTTuyBSJ47NqyDhA==</TypeGuid>
                        <Parameters>
                            <Parameter>`displayonopen</Parameter>
                        </Parameters>
                    </Action>
                </Actions>
            </Trigger>
        </Triggers>
    </TriggerCollection>
    
     

    Last edit: Rookiestyle 2023-07-09
    • S Hoffmann

      S Hoffmann - 2023-08-06

      Greetings, Rookiestyle!
      Sorry for the ate response.
      Well, I went through the the instructions you provided and input the coding as you kindly posted. I was also sure, as you directed, to change testdb1.kdbx with the name of the name folder (in which different sites I like I like to visit are nested)--I wanted it to appear as the default whenever I start up KeePass.
      For example: Let's call the folder Camping.)
      I tried inputting your complete instructions swapping out testdb1.kdbw using the parameter Camping.kdbx, with no success. A different folder remained as the default appearing on the screen; even after saving and rebooting. Question: Did you wish for me to enter the entire parameters you listed, irrespective of the col,or in which they appear in your instructions to me?
      I'm willing to err on the side that I am still entering something wrong, or in the wrong place. But I was very carry about following your instructions. I applaud you for sticking with this on my behalf, but would under stand if you wish to ail at this point. Your time is valuable, too!
      Best, Paul
      [Once again, I am using KeePass v. 2.54 (64-bit) for Windows 10. Do you think switching to version 1--which I'd prefer not to do if I don't have to--might make a difference?]

       
      • Paul

        Paul - 2023-08-06

        To add a trigger you copy the entire XML (the grey background) and from the Triggers tab click Tools > Paste from clipboard.

        I notice in the trigger posted that there is a back apostrophe in front of the tag name: displayonopen
        I assume this is a typo.

        cheers, Paul

         
  • S Hoffmann

    S Hoffmann - 2023-07-21

    This did not work either, though I am grateful for the time you took to post the content of the trigger I needed. It's possible that part of the ongoing issue is that there are options and steps )in the form of buttons on the screens you ask me to navigate to (and I am uncertain which one to use if any)--as well as to where I should be pasting in modifies instruction set you displayed above. I tried several times, in different windows and locations where the script could be pasted in. Still no luck.
    While I am not content to give up here, I think I gave asked enough of the individuals who were kind enough to respond to the initial/subsequent questions I posted. No more feedback is necessary. If there is a way I can post this directly to KeePass (can I?) or another site similar to this one (suggestions?), I will.
    If not, I'll just deal with this.
    My sincere thanks to everyone who offered assistance.
    -- Paul

     
  • Paul

    Paul - 2023-07-21

    To import a trigger:
    Copy everything in the post above in the grey section.
    In KeePass
    Tools > Triggers > Tools >Paste Trigger from Clipboard

    The trigger will be the last one(s) in the trigger list and you can edit as required.

    cheers, Paul

     
  • S Hoffmann

    S Hoffmann - 2023-08-11

    Nope. I followed the instructions, cleared away the typo (refereed to in this thread), entered the entire code, and...zip. The same "Group" still appears on my screen as a default.
    Let's try something a little more basic to ensure clarity.
    1) When I see comments like "copy everything above the grey area" or "grey background" , are you referencing the horizontal scroll bar in the code that was sent, or something else? I don't see a grey background!
    2) If I want to make my default group (which will appear whenever I open KeePass) to be a group (by example) I have called Camping...should I be entering the following: Camping.kdbx where Testdb1.kdbx. now appears? Something else?

    I just know I'm going to get kicked out of MENSA for all this... :)

     
  • Paul

    Paul - 2023-08-12

    I'm sure you have managed to copy all the code (between the angle brackets).

    Add a pop-up message box to prove the trigger fires.
    Edit the trigger and add an action at the top. Use "Show message box" and add some text in the "Main instruction" field.

    cheers, Paul

     

Log in to post a comment.