Request for

Got this message: https://github.com/antonmedv/fx/actions/runs/6227756382/job/16903062206

Status: will need manual review

28Issues while processing snap:

29- interface reference ‘home’ found in base declaration

30- human review required due to ‘allow-installation’ constraint (bool)

For my snap: https://github.com/antonmedv/fx/blob/master/snap/snapcraft.yaml

How to get an approval? I’d like to allow reading ~/.fxrc.js config for my app.

You are trying to replace an existing interface (home) with a personal-files one… drop that definition name and instead call it “dot-fxrc-js”… that should make “interface reference ‘home’ found in base declaration” go away… note that the personal-files definition will still make it go into manual review though

Please, explain) I didn’t get it.

change your snapcraft.yaml from this:

plugs:
  home:
    interface: personal-files
    read:
      - $HOME/.fxrc.js
  network:
    interface: network

apps:
  fx:
    command: bin/fx
    plugs: [ home, network ]

to this:

plugs:
  dot-fxrc-js:
    interface: personal-files
    read:
      - $HOME/.fxrc.js

apps:
  fx:
    command: bin/fx
    plugs: [ dot-fxrc-js, home, network ]

i.e. drop the superfluous “network” re-definition that essentially just points to itself, stop trying to re-define “home” and use it as is (which gives you access to all non-hidden files/dirs of the users home) and add a personal-files entry that allows reading of ~/.fxrc.js using the right descriptive naming scheme …

2 Likes

Thanks a lot! )))))))))))

thanks @antonmedv for making the changes. I can see the updated changes in yaml file

plugs:
  dot-fxrc-js:
    interface: personal-files
    read:
    - $HOME/.fxrc.js

+1 from me to auto-connect personal-files interface for this file. It is required for the snap

+1 for fx having auto-connection to personal-files for read access to .fxrc.js. According to the documentation, fx is expected to access this file.

+2 votes for, 0 against. Granting auto-connect of dot-fxrc-js to fx. This is now live.