To make the review of your request easier, please use the following template to provide all the required details and also include any other information that may be relevant.
name: gimp
description: general purpose image editor extensible by plugins, supports migrating config data between multiple gimp versions
reasoning: we own $HOME/.config/GIMP. That dir is used to save GIMP config data on versioned subdirs. So, the latest channel would save as $HOME/.config/GIMP/3.0 and the preview one as $HOME/.config/GIMP/3.2. Without such interface, our config migration code is not working properly for snap: https://gitlab.gnome.org/GNOME/gimp/-/issues/15547
(WARNING: I am just opening this report in advance to accelerate the voting but none of our tracks on gimp snap have such interface enabled yet. If approved, please wait until GIMP 3.2 release).
Hello! This is a +1 (#voteFor) from me as well for personal-files write access to the $HOME/.config/GIMP directory, as the ownership expectations for the folder is clear.
One question: does snapcraft upload CLI tool return a different return value from a real error status and a âneed manual reviewâ status?
A problem we saw is that this status broke our pipeline (as it obviously didnât return 0; though the pipeline doesnât say what it returned), only uploaded one of the 2 archs then stopped. The other problem is that when the pipeline ends in error, a few other steps in the release procedure are more annoying (because Gitlab wonât generate some âeasyâ redirection URLs â which our scripts use â for failed pipelines).
We still want to see real failures, but âneed manual reviewâ is not actually a failure, right? We just wait a bit to get the manual validation. So Iâd like for our pipeline to still pass as success in this âmanual reviewâ case, which is why I hope that we can react conditionally on the return value.
P.S.: the alternative could be to process the stdout/stderr strings, but this is not always ideal, especially as such strings are not always stable so this makes for flimsy error handling.
Snapcraft doesnât differentiate between a real error and a âneeds manual reviewâ response.
Iâm seeing that the store does respond with a status like ready_to_release or need_manual_review, so Snapcraft could handle these programatically. I donât see this documented, so Iâd need to ask the store team what the possible values are.
I think Snapcraft should have some solution for this. If you make an issue here, we can discuss it further.
We are planning on releasing GIMP 3.2.0 (stable) tomorrow, if all goes fine! So far, we are guessing that this first release will trigger the same âwill need manual reviewâ status and therefore will break our pipeline with our Snap publication job. At least, we assume that the approval has only been granted to the preview channel, but not the latest one.
Would it be possible to give in advance the same interface-granting that you gave to preview, to the latest channel as well?
This would be helpful as these pipeline breakage are annoying and further break other automatic scripts down the line. In the future, when our feature request wil have been implemented, it wonât be a problem anymore. But in the meantime, itâs a bit annoying.
Sorry for missing the initial reply, but I see that 3.2 has been released (hopefully without issue)! To answer the question belatedly, interfaces are granted on a per-snap basis and are not restricted to channels, so (hopefully) you will only run into the described pipeline issues when adding a new super-privileged interface or a new dbus interface.