Menu

KeePass after XFCE 4.20 upgrade

Help
Mark
2025-03-25
2025-04-02
  • Mark

    Mark - 2025-03-25

    Hello, some weeks ago my MX Linux 23.5 started to do an update for XFCE desktop to version 4.20.
    Since then KeePass is not usable for me anymore. Screens, symbols, fonts everything is big like the whole desktop screen so that its not usable again. Even resizing the KeePass windows with mouse is not possible.
    Searching around the net but didn't find any solution so far. Meanwhile I tested on a complete new installation but it's the same. Seems the issue has only to to with XFCE 4.20 because on other/older installation with 4.18 its working as usual. Also no issues with other apps, KeePass is the only one, unfortunatelly I need to use KeePassXC since then :-(

    Anybody some idea where I can start to fix this issue ?
    Do you need any additional information for this ?
    Attached you find 2 screenshots how it looks on my laptop:

    Thanks for your support.
    Best regards
    Mark

     
  • Dominik Reichl

    Dominik Reichl - 2025-03-25

    If you click 'Tools' → 'Options' → tab 'Interface (1)' and deactivate the option 'Force usage of system font (Unix only)', does it look better?

    Best regards,
    Dominik

     
    👍
    1
    • Rick Master

      Rick Master - 2025-04-02

      Aufgrund meines fortgeschrittenen Alters und meinem eingerosteten Schulenglisch kann ich hier leider nur auf deutsch antworten. Wenn jemand die Lösung ins Englische übersetzen möchte, kann er das gerne tun.
      Ich babe diverse MX-Linux-Installationen auf diversen Maschinen am Laufen, real und virtuell. Bei allen trat das hier erwähnte Problem mit dem übergroßen KeePass2-Fenster auf. Ich habe mir schon die Haare gerauft, wollte aber auch partout nicht auf KeePassXC wechseln.

      Also...

      Lösung für KeePass2 2.47

      KeePass2 starten und alles wird übergroß dargestelt

      in
      Tools -> Options
      den Reiter Interface anklicken

      die 1. Zeile markieren, so dass sie blau hinterlegt ist

      dann die "Pfeil unten"-Taste so lange drücken, bis sich nichts mehr tut

      Leertaste drücken, damit das Häkchen bei "Force usage of system font (Unis only)" entfernt wird

      dann 8 Mal die Tab-Taste drücken, bis man auf dem Ok-Button landet --> Enter drücken

      Keepass neu starten und voila

      Lösung für KeePass2 2.57

      KeePass2 starten und alles wird übergroß dargestelt

      in
      Tools -> Options
      den Reiter Interface1 anklicken

      die 1. Zeile markieren, so dass sie blau hinterlegt ist

      dann die "Pfeil unten"-Taste so lange drücken, bis sich nichts mehr tut

      Leertaste drücken, damit das Häkchen bei "Force usage of system font (Unis only)" entfernt wird

      dann 2 Mal die Tab-Taste drücken, bis man auf dem Ok-Button landet --> Enter drücken

      Keepass neu starten und voila

      Bei mir hat es bei all meinen MX-Installationen geholfen. Ich hoffe, bei Euch auch

      Schöne Grüße
      Rick

       
      • Paul

        Paul - 2025-04-02

        English Version

        Solution for KeePass 2.47

        • Start KeePass2 and everything will be displayed in oversized format.
        • Go to Tools -> Options, click on the Interface tab.
        • Select the first line so that it is highlighted in blue (do not change the setting).
        • Then press the "down arrow" key until nothing happens. This will move you down to the last item "Force usage of system font (Unix only)".
        • Press the space bar to remove the checkmark from "Force usage of system font (Unix only)".
        • Then press the tab key 8 times until you reach the OK button. Press Enter.
        • Restart KeePass and voila!


        Solution for KeePass 2.57

        • Start KeePass2 and everything will be displayed in oversized format.
        • Go to Tools -> Options, click on the Interface1 tab.
        • Select the first line so that it is highlighted in blue (do not change the setting).
        • Then press the "down arrow" key until nothing happens. This will move you down to the last item "Force usage of system font (Unix only)".
        • Press the space bar to remove the checkmark from "Force usage of system font (Unix only)".
        • Then press the tab key 2 times until you reach the OK button. Press Enter.
        • Restart KeePass and voila!
         

        Last edit: Paul 2025-04-02
  • Mark

    Mark - 2025-03-25

    Unfortunately it's not possible to navigate to this or any other menu, which is the issue.
    Maybe any option via editing an xml or config file of KeePass ?

    Best regards
    Mark

     
  • Dominik Reichl

    Dominik Reichl - 2025-03-25

    In your 'KeePass.config.xml' file, set Configuration/UI/ForceSystemFontUnix to false, like in this fragment:

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
        <UI>
            <ForceSystemFontUnix>false</ForceSystemFontUnix>
        </UI>
    </Configuration>
    

    Best regards,
    Dominik

     
  • Mark

    Mark - 2025-03-25

    Hello Dominik,
    many thanks for your support.
    Adjust the setting in the xml like you suggested didn't made it.
    BUT I found other thing while experimenting:
    starting Keepass.exe from terminal commandline in the directory I unpacked it:
    sudo mono Keepass.exe
    ==> it's working fine !!! Starting without sudo (mono Keepass.exe) I run into same error as described in the beginning.

    Only error I have with sudo: double-clicking on the URL of an entry to open the URL in a browser does not start the browser. In the background terminal I got error message:
    Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/pinochio/.Xauthority which is owned by pinochio.)

    Any clue what can be the issue ? Something with access-rights ?

    Best regards
    Frank

     
  • Dominik Reichl

    Dominik Reichl - 2025-03-26

    If the ForceSystemFontUnix option is turned off, KeePass doesn't specify/change the UI font, i.e. it is determined by Mono. So, this seems to be a bug in Mono. As it works when running KeePass with sudo, I guess there's a setting in your regular user profile that causes Mono to compute the font size incorrectly (the setting might be misinterpreted, corrupted, missing, ...); I'm not sure.

    I've tried to reproduce this issue (with an up-to-date MX Linux 23.5 in a VM, with different scaling factors), but it always worked fine for me. So, the Mono developers might need more details, if you want to report it there.

    As a workaround, you could try specifying a font explicitly with the KeeUIExt plugin:
    https://keepass.info/plugins.html#keeuiext

    I don't recommend running KeePass with sudo.

    Best regards,
    Dominik

     
  • Wolfgan

    Wolfgan - 2025-03-29

    Same here, only that the whole desktop seems to be affected everytime I launch keepass and move around the program interface (ie mouse pointer moves but I can't change focus between windows for a few seconds). Program is slow to launch, switch from master password window to main interface, and also exit.

    I run mono /usr/lib/keepass2/KeePass.exe and no errors are displayed, mono in verbose also doesn't show anything suspicious. Tried both systemfont configs (enabled or disabled) to no avail.

    Very weird (no other programs misbehave). BTW, I have a multi-display setup (laptop display + 2 monitors connected) if that gives any clue.
    Thanks for any tip on how to troubleshooting the issue! W

     
  • Wolfgan

    Wolfgan - 2025-03-29

    BTW, when trying to install keeuiext as suggested, Plugins Manager trying to open the plugins folder it errors in "/usr/lib/keepass2/Plugins Cannot find specified file" and mono doesn't display any errors to give me a clue on what's happening
    TIA, W

    keepass v2.57
    Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 11:18:08 UTC 2022)

     
  • Dominik Reichl

    Dominik Reichl - 2025-03-29

    If the 'Plugins' folder does not exist, you need to create it (my installers/packages already contain an empty 'Plugins' folder).

    The latest version of the KeeUIExt plugin (1.4) is built for KeePass 2.58 (and higher).

    Best regards,
    Dominik

     
    • Wolfgan

      Wolfgan - 2025-03-29

      /usr/lib/keepass2/Plugins folder does exist, installer made it owned by root:root and I expanded permissions to a+rwx just in case, but the error still appears (folder is empty btw, just in case the program expects any cfg file in there)
      Thx, W

       
  • Paul

    Paul - 2025-03-29

    Have you tried closing KeePass and then renaming the config file?

    On Linux systems, the local configuration file is typically stored in '$XDG_CONFIG_HOME/KeePass' (which often is '~/.config/KeePass', where '~' is the user's home directory).

    cheers, Paul

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.