ubuntu-frame provides an ubuntu-frame-diagnostic content slot through which textual diagnostic information can be supplied to Frame.
The diagnostic information will be displayed by Frame if no application is running after a short timeout. This can be used to text information: such as “Oops! Please switch off and on again”, “ip address: xxx.xxx.xxx.xxx”, a crash dump, etc.
Applications plugging this slot should be connected by default.
Can you describe a bit more about this content slot? I can’t see it in the current version of ubuntu-frame in the store. What does it provide to consuming snaps? Will this API be maintained going forward?
I wonder if writable-data is the best name here - perhaps instead it should be diagnostic-data since any snap which wants to plug this will also have to use that name - thoughts?
I’m open to suggestions about the name, but I don’t find diagnostic-data much of an improvement.
Does the content field actually affect anything? I tried changing the text in my frame-diagnostic test snap and it still connects (manually) and works
[edit, after further thoughts]
AFAICS the content: attribute is simply “an arbitrary identifier for content type” and has no function beyond documentation. I can find very few snaps that bother to specify it (and many that don’t).
So, my preferred approach is to drop the explicit attribute.
Alternately, maybe diagnostic-text would suggests that the content will be treated as text.
My understanding is that for the auto-connect declaration on the store, it will only auto-connect when a plugging snap uses the same content attribute - so any snap which wants to plug this will have to use the same content attribute, and hence having a sensible name here is important.
I like your suggestion of diagnostic-text - +1 from me for granting global auto-connect for this content slot using that attribute.