keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.03k stars 1.42k forks source link

Snap: Add automatic aliases for CLI and Proxy apps #10938

Open JGCarroll opened 2 weeks ago

JGCarroll commented 2 weeks ago

Overview

I was skeptic of proposing this since there's no actual code, but it's an issue with a specific & easy resolution for a real problem so I thought I'd give it a go!

Although the CLI environment is bundled with the snap, the snap is currently only exposing this as keepassxc.cli, which is the guaranteed app alias/binary without any store overrides.

However, all the documentation expects this to be simply keepassxc-cli.

Users can manually fix this with sudo snap alias keepassxc.cli keepassxc-cli but that's more snap specific stuff that shouldn't exist.

Would it be possible to ask the Snap Forum:

Please grant automatic aliases for:
`keepassxc.cli` --> `keepassxc-cli`
`keepassxc.proxy` --> `keepassxc-proxy
These match the expected executable names used in our documentation and external scripts

Although the proxy isn't strictly required because the recent native messaging patches write keepassxc.cli anyway, it makes sense to ask for both at the same time to have consistency.

Once approved by the store, on their next revision update, all users would have both the original names and newly aliased names available on their $PATH by default assuming the snap is signed by the store (i.e installed without --dangerous).

Operating System: Linux/Snap