Unset XDG_DATA_DIRS before launching app, resolves #194, reverts #273

This commit is contained in:
Janek Bevendorff 2017-02-09 21:35:17 +01:00
parent 6c45fcbfc7
commit d1b403333c
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53
2 changed files with 7 additions and 2 deletions

View File

@ -74,6 +74,11 @@ cat << EOF > ./usr/bin/keepassxc_env
#export QT_QPA_PLATFORMTHEME=gtk2
export LD_LIBRARY_PATH="../opt/qt58/lib:\${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}"
# unset XDG_DATA_DIRS to make tray icon work in Ubuntu Unity
# see https://github.com/probonopd/AppImageKit/issues/351
unset XDG_DATA_DIRS
exec keepassxc "\$@"
EOF
chmod +x ./usr/bin/keepassxc_env

View File

@ -91,12 +91,12 @@ QString FilePath::pluginPath(const QString& name)
QIcon FilePath::applicationIcon()
{
return icon("apps", "keepassxc", false);
return icon("apps", "keepassxc");
}
QIcon FilePath::trayIconLocked()
{
return icon("apps", "keepassxc-locked", false);
return icon("apps", "keepassxc-locked");
}
QIcon FilePath::trayIconUnlocked()