canonical / snapcraft

Package, distribute, and update any app for Linux and IoT.
https://snapcraft.io
GNU General Public License v3.0
1.19k stars 447 forks source link

extensions: simplifies the platform plug #5109

Open soumyaDghosh opened 1 month ago

soumyaDghosh commented 1 month ago

This PR simplifies the desktop command chain approach, also adds support for separate Platform plug which was also used previously.

Better to merge this before #5092

soumyaDghosh commented 1 month ago

@ScarlettGatelyMoore dropped the "make-parameters": ["PLATFORM_PLUG=... lines yesterday in d1c5ecb#diff-8a03e9a3b9e1e0cfa55b428426f2adc16394d075e8adf80c3f487022e02bb4f6L701.

Is PLATFORM_PLUG and this PR still needed or can it be dropped?

PLATFORM_PLUG that she was using i.e PLATFORM_PLUG=runtime snap name isn't used anymore, this PR reintroduces it in a different way. I did suggested the changes that were needed to make this PR work with #5092 , but it probably got things complicated on her side. So, I think better to wait, and once her PR is ready, I can rework on things. This PR basically removes the hardcoded gnome-platform path in the command-chain from here and make the path configurable.

EDIT: @jardon tried to do the same thing in this PR.

mr-cal commented 1 month ago

Waiting on #5092 to land first sounds like a good plan. Thanks!