Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
interfaces: add thumbnailer interface #1775
Conversation
artmello
and others
added some commits
Aug 9, 2016
fkaleo
changed the title from
Add thumbnailer interface
to
interfaces: add thumbnailer interface
Aug 29, 2016
zyga
reviewed
Aug 29, 2016
| + iface: &builtin.BluezInterface{}, | ||
| + slot: &interfaces.Slot{ | ||
| + SlotInfo: &snap.SlotInfo{ | ||
| + Snap: &snap.Info{SuggestedName: "bluez"}, |
zyga
Aug 29, 2016
Contributor
This is copy pasted, it would be nice to at least replace those strings.
|
What is the indented use case of this interface? It seems to be used on classic (because of the |
|
Please check the README.md for some hints on how to run unit tests. You should also re-format the files you changed with |
fkaleo
commented
Aug 29, 2016
|
Sorry about that: most of my work was missing from the PR due to the missed commit. |
fkaleo
added some commits
Aug 30, 2016
morphis
reviewed
Aug 31, 2016
| +type ThumbnailerInterface struct{} | ||
| + | ||
| +func (iface *ThumbnailerInterface) Name() string { | ||
| + return "thumbnailer" |
morphis
Aug 31, 2016
•
Contributor
Can you document this interface in https://github.com/snapcore/snapd/blob/master/docs/interfaces.md?
Also a manual test case to verify the interface is working in https://github.com/snapcore/snapd/blob/master/integration-tests/manual-tests.md or a spread test is required.
morphis
reviewed
Aug 31, 2016
| + | ||
| +var thumbnailerServiceConnectedPlugAppArmor = []byte(` | ||
| +# Description: Allow accessing the thumbnailer service. | ||
| +# Usage: reserved |
fkaleo
added some commits
Sep 1, 2016
jhenstridge
reviewed
Sep 7, 2016
| +<policy context="default"> | ||
| + <deny send_destination="com.canonical.Thumbnailer"/> | ||
| +</policy> | ||
| +`) |
jhenstridge
Sep 7, 2016
Contributor
I'm a snappy novice, but this looks like the kind of configuration you'd use to expose a service on the system bus.
Thumbnailer is a user service that runs on the session bus and serve requests from processes with the same UID. It definitely isn't intended to be a system service running as root exposed on the system bus.
morphis
Sep 7, 2016
Contributor
It is. @fkaleo can you clarify what kind of service the thumbnailer is?
fkaleo
Sep 8, 2016
Indeed it sounds like I did it all wrong. Despair.
@jhenstridge are we supposed to have a single instance of the service per user session or is it ok to bundle the thumbnailer service as part of the app and spawn one per app?
|
@fkaleo: Can you look at the failing tests? |
fkaleo
commented
Sep 8, 2016
|
Just a note: once this interface is good to go, we will be missing:
|
fkaleo
added some commits
Sep 8, 2016
|
What's the status here? |
fkaleo
added some commits
Sep 20, 2016
|
I see activity, but a question 10 days ago that went unanswered, missing files, conflicts, failing tests. It doesn't look like this should be in review yet. Closing, please reopen when it's golden. |
fkaleo commentedAug 29, 2016
No description provided.