On 27/03/17 04:46, Michael Hall wrote:
Good news, that's already there! In each appname section in your "apps:" definitions you can add a property names "aliases" that takes a yaml list of names you want to use. For example:name: snapname apps: appname: command: foo aliases: [bar] By default this will give you /snap/bin/snapname.appname But then if you run the command: "snap alias mysnap bar" you will get /snap/bin/bar which you can invoke with just "bar" from the commandline. Instead of "bar" you can use "appname" or anything else you want to make an alias for that app. This still requires a manual step after installing your snap to enable the alias, but we're working out a process to allow it to be auto-enabled, which I'm sure will be announced on this list once it's available.
Sounds cool! But what if the 'alias' I want is ... just `foo` itself? I take it that for now I still need to create the `aliases` section, just repeating the existing app command name?
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
