Skip to content

Export CHROME_WRAPPER environment variable inside AppImage for correct KeePassXC interaction #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pezeee001 opened this issue Mar 17, 2025 · 0 comments

Comments

@pezeee001
Copy link

Context: KeePassXC is a self-hosted password manager with browser integration like autotyping. I've been using Ungoogled Chromium native with KeePassXC AppImage for some time now but UC OBS stalled at 112 and some sites started to break so I've decided to migrate to this AppImage. Everything works fine except KeePassXC keeps focusing every 10 seconds or so and browser integration also doesn't work.

After extracting both AppImages, I found out that KeePassXC AppRun checks if CHROME_WRAPPER env variable is set, which then launches KeePassXC-proxy that handles native messaging, and if it isn't, launches KeePassXC normally, which caused the app to focus:

# KeePassXC AppRun

if [ "$1" == "cli" ]; then
    shift
    exec keepassxc-cli "$@"
elif [ "$1" == "proxy" ]; then
    shift
    exec keepassxc-proxy "$@"
elif [ -v CHROME_WRAPPER ] || [ -v MOZ_LAUNCHED_CHILD ]; then
    exec keepassxc-proxy "$@"
else
    exec keepassxc "$@"
fi

I've managed to fix the issue by repacking this AppImage and adding this to AppRun code:

export CHROME_WRAPPER="$(readlink -f "${0}")"

It's based on Chromium source but I think CHROME_WRAPPER value doesn't matter in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant