Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-01-29 04:24:12 +0300
committerJanek Bevendorff <janek@jbev.net>2017-01-29 04:24:12 +0300
commite326e2c6b3524f19f357c1f6a3d1612eb2aaa052 (patch)
tree0c6b38df35b2c115d8aa3eb525b8f52922292d53 /AppImage-Recipe.sh
parente94dc226b5ded11611e554da672f8cb56a531e0c (diff)
Bundle GTK2 platform style
Diffstat (limited to 'AppImage-Recipe.sh')
-rwxr-xr-xAppImage-Recipe.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/AppImage-Recipe.sh b/AppImage-Recipe.sh
index d9cbd5651..1c31e4bd5 100755
--- a/AppImage-Recipe.sh
+++ b/AppImage-Recipe.sh
@@ -46,11 +46,12 @@ rm -R ./usr/local
patch_strings_in_file /usr/local ././
patch_strings_in_file /usr ./
-# bundle Qt platform plugins
+# bundle Qt platform plugins and themes
QXCB_PLUGIN="$(find /usr/lib -name 'libqxcb.so' 2> /dev/null)"
QT_PLUGIN_PATH="$(dirname $(dirname $QXCB_PLUGIN))"
mkdir -p "./${QT_PLUGIN_PATH}/platforms"
cp "$QXCB_PLUGIN" "./${QT_PLUGIN_PATH}/platforms/"
+cp -a "${QT_PLUGIN_PATH}/platformthemes" "./${QT_PLUGIN_PATH}"
get_apprun
copy_deps
@@ -62,6 +63,13 @@ find . -name libsystemd.so.0 -exec rm {} \;
get_desktop
get_icon
+cat << EOF > ./usr/bin/keepassxc_env
+#!/usr/bin/bash
+export QT_QPA_PLATFORMTHEME=gtk2
+exec keepassxc "$@"
+EOF
+chmod +x ./usr/bin/keepassxc_env
+sed -i 's/Exec=keepassxc/Exec=keepassxc_env/' keepassxc.desktop
get_desktopintegration $LOWERAPP
GLIBC_NEEDED=$(glibc_needed)