Skip to content

bug(avli): sandboxing in snap and flatpak on Linux do not allow loading temporary or persisted profiles #45

Description

@blimmer

Browsers installed with snap and flatpak sandbox the browser to certain locations on the filesystem. Therefore, temporary profiles created via mktemp or in the default persisted location (~/.config/zsh-aws-vault) fail to launch.

In these cases, we need to create the profile within the sandboxed location.

See the comment threads below where @b-anantha posted some examples.

Workaround

If you've found this bug because you're experiencing an issue, you can work around this by utilizing the "persisted profiles" configuration parameters. For example, if you're using Firefox installed via snap, you could set:

export AWS_VAULT_PL_PERSIST_PROFILE=true
export AWS_VAULT_PL_PERSIST_PROFILE_PATH=$HOME/snap/firefox/common/.mozilla/firefox

This will ensure that avli profiles are created within the snap sandbox path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions