mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 14:46:07 -04:00
Support starting keepassxc-cli via 'cli' argument
This commit is contained in:
parent
51ed7a59da
commit
e2c6f50108
1 changed files with 7 additions and 2 deletions
|
@ -78,10 +78,15 @@ export LD_LIBRARY_PATH="..$(dirname ${QT_PLUGIN_PATH})/lib:\${LD_LIBRARY_PATH}"
|
||||||
export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}:\${KPXC_QT_PLUGIN_PATH}"
|
export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}:\${KPXC_QT_PLUGIN_PATH}"
|
||||||
|
|
||||||
# unset XDG_DATA_DIRS to make tray icon work in Ubuntu Unity
|
# unset XDG_DATA_DIRS to make tray icon work in Ubuntu Unity
|
||||||
# see https://github.com/probonopd/AppImageKit/issues/351
|
# see https://github.com/AppImage/AppImageKit/issues/351
|
||||||
unset XDG_DATA_DIRS
|
unset XDG_DATA_DIRS
|
||||||
|
|
||||||
exec keepassxc "\$@"
|
if [ "\${1}" == "cli" ]; then
|
||||||
|
shift
|
||||||
|
exec keepassxc-cli "\$@"
|
||||||
|
else
|
||||||
|
exec keepassxc "\$@"
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
chmod +x ./usr/bin/keepassxc_env
|
chmod +x ./usr/bin/keepassxc_env
|
||||||
sed -i 's/Exec=keepassxc/Exec=keepassxc_env/' org.keepassxc.desktop
|
sed -i 's/Exec=keepassxc/Exec=keepassxc_env/' org.keepassxc.desktop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue