Classic confinement for thefuck

This tool helps to correct spelling mistakes made when calling commands, examples are here.
When confined thefuck is not able to give correct suggestions and available interfaces don’t satisfy it’s needs.

Apparmor denies and source code suggest it needs:

  1. .{bash,fish,zsh}_history - home interface gives access to non-hidden files only
  2. read access to every directory in PATH - probably it needs to run commands as well, couldn’t find interface for it
  3. /proc/x/mounts - guess it would be mount-observe
  4. ptrace - probably not really required

Additionally it needs helper command fuck, which is called most of the time. How could it be resolved without telling the user to create alias?

Snapcraft url: https://dashboard.snapcraft.io/snaps/thefuck/revisions/1/
Snap YAML: https://raw.githubusercontent.com/mati865/thefuck/master/snap/snapcraft.yaml

1 Like

There’s auto-aliases that can be applied on the Snap Store, refer: Process for aliases, auto-connections and tracks

Classic confinement should give you access to all those requirements.

I see you have already engaged with upstream. Can we get the snap to be published directly out of the repository?

/cc @jdstrand @evan @popey

1 Like

Hence I opened the request.

I don’t have admin access to the official repository and don’t feel like it’s plausible so I cannot select it in https://snapcraft.io/build. Original author agreed to put snapcraft.yaml in official repo so I can open PR in no time.

Nice, thanks! So if we can get that built from the upstream repository, +1 for classic from me.

Given that this application needs to execute arbitrary binaries +1 from me.

1 Like

@mati865 - has this happened?

Thefuck author seems to be away.
PR is waiting for merge: https://github.com/nvbn/thefuck/pull/836

Any more news on this?

I’ve just pinged in mentioned PR, no progress yet.

The PR was merged so it can use official repository now.

1 Like

I verified this is now upstream. This now meets the criteria for classic. @Wimpress or @popey - can one of you vet the publisher?

1 Like

@popey, @Wimpress, @Igor, @evan - ping, all we need is the vetting and I can grant.

1 Like

I’m fine with granting classic for this, given that the yaml is now upstream. Thanks @mati865 for landing that!

Let’s work with upstream to get a branded account to publish under, the snap moved over, and published from Travis or build.snapcraft.io.

And I think @mati865 meets the definition of an upstream contributor, having landed snap support. I can confirm I’ve vetted him as the publisher.

Granting use of classic. This is now live.

Thanks, I’d love to use build.snapcraft.org but I don’t have admin permission to the repo. I’ll try to get Travis to build snaps over next week.