User Tools

Site Tools


config:keepass

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:keepass [2025/08/08 15:59] Wuffconfig:keepass [2026/04/22 17:24] (current) Wuff
Line 308: Line 308:
   * Custom entry string "Visible" set to "False" will hide autoopen entries from Menu -> open   * Custom entry string "Visible" set to "False" will hide autoopen entries from Menu -> open
   * Custom entry string "Focus" set to "Restore" will switch the active tab to the main database again.   * Custom entry string "Focus" set to "Restore" will switch the active tab to the main database again.
 +  * Custom entry string "ifDevice" can be used to exclude or include specific devices i.e. '!OnePlus DN2103 (b6e6...)' excludes a specific OnePlus mobile.
  
 ===== Open specific db on startup ===== ===== Open specific db on startup =====
Line 318: Line 319:
 Opening multiple specific databases at KeePass startup can for example be realized using the trigger approach above (with multiple trigger actions) or using the KeeAutoExec plugin.  Opening multiple specific databases at KeePass startup can for example be realized using the trigger approach above (with multiple trigger actions) or using the KeeAutoExec plugin. 
  
-===== Open additional db based on credentials in one db =====+===== Problem with dialog buttons missing text =====
  
-I.e. to open a shared database when opening a personal db, install the KeeAutoExec plugin. +Current libgdiplus of debian/ubuntu/mint contains libpango which causes problems with keepass2Option is to downgrade until fixed upstream.
-Then add an entry to the AutoOpen group. +
-  * Set the title to something sensible +
-  * Set the password to the masterpassword of the database that should be opened +
-  * Set the url to the file that should be opened. If credentials are necessary, add those to the url directly. e.g. %%https://user:password@remoteurl.example.com/path/file.kdbx%%+
  
-If this entry should not be opened on specific devices, add advanced options like: +<code bash libgdiplus_downgrade.sh> 
-  * ifDevice 'OnePlus DN2103 (b6e6...mac address)' +#!/bin/bash 
-  * Visible 'False' +doKeepassFix() ( 
-and +  # check os 
-  * Focus 'Restore' +  #/etc/os-release 
-  * ifDevice '!OnePlus DN2103 (b6e6...mac address)' +  #[[ ${ID_LIKE} = "debian" ]] || { 
-  * locPassword 'webdav password' +  #  : ${EXCEPTION:?$(echo -e "\e[41mThis script is intended to run on ${ID_LIKE} line os\e[0m")} 
-  * locUserName 'webdav username'+  #} 
 + 
 +  # if libgdiplus exists and does not embeds pango then skip process 
 +  libgdiplus="/usr/lib/libgdiplus.so" 
 +  [[ -e ${libgdiplus} ]] || 
 +    [[ $(strings ${libgdiplus} | grep pango | wc -l) -gt 0 ]] || { 
 +      echo "Nothing to do - libgdiplus already patched" >&
 +      return 0 
 +    } 
 + 
 +  # Perform downgrade 
 +  arch=$(dpkg --print-architecture) 
 +  baseUrl="http://ftp.de.debian.org/debian/pool/main" 
 +  pkgs=( 
 +    libj/libjpeg-turbo/libjpeg62-turbo_2.1.5-4 
 +    libw/libwebp/libwebp6_0.6.1-2.1+deb11u2 
 +    t/tiff/libtiff5_4.2.0-1+deb11u5 
 +    libg/libgdiplus/libgdiplus_6.0.4+dfsg-2 
 +  
 +  cd $(mktemp -d) 
 +  retCode=0 
 +  for pkg in ${pkgs[@]}; do 
 +    url="${baseUrl%/}/${pkg#/}_${arch}.deb" 
 +    curl -sSLfO "${url}" && 
 +      sudo dpkg -i ./${url##*/} || { 
 +        # Raise error code 
 +        retCode=${?
 +        # Display debug 
 +        echo -e "\t\    e[1;4mcwd\e[0m: $(pwd)" >&
 +        echo -e "\t\    e[1;4murl\e[0m: ${url}" >&
 +        echo -e "\t\e[1;4mpackage\e[0m: ./${url##*/}" >&
 +        break 
 +      } 
 +  done 
 + 
 +  # Lock package if no error occured 
 +  [[ ${retCode} -gt 0 ]] || sudo apt-mark hold libgdiplus 
 +
 + 
 +doKeepassFix 
 +</code> 
 + 
 +Run with sudo 
 +<code> 
 +sudo ./libgdiplus_downgrade.sh 
 +</code>
  
config/keepass.1754665152.txt.gz · Last modified: by Wuff