Click Packages Included on Ubuntu Touch

Posted:   |  More posts about ubuntu phablet click

In the recent images, starting the 20130813.1, you will notice that click packages have started to show up on the built images. That is, from a user perspective you would probably not notice at all, but if you dive into the system, you will.

What and how it is built

Currently, all the packages for the Core Community Apps are being built as click packages, as these are the easiest since are binary independent.

The click packages are built on jenkins, you can take a look at the sudoku-app. These are built in some dynamic form with a tool that basically reads out the current debian packaging from the sources and builds out a manifest and puts everything in a staged location on which we just run click build.

Since there is no concept of a PPA for a click package they are provisioned on one of the Canonical Servers that can be found here.

What's installed

While all of the click packages could be installed on the image, we are only installing 3:

  • dropping letters.
  • sudoku.
  • stock ticker.

The installation is done from a hook in livecd-rootfs which installs them as the phablet user in order for you to enjoy them on the install.

The list of packages to install is today sort of hardcoded in click_list which is built out by Any new addtions, to this date will come from here.

What happens when a click package is installed

When you install a click package you need to target a user, a click package with no hooks would just lay it out plainly. A click package manifest with hooks will trigger certain actions upon installation, today there are two important ones:

  • security hook: this creates the apparmor profile for the app to run under confinement, these land in /var/lib/apparmor/profiles/.
  • desktop hook: this is a user hook, which basically provisions a desktop file modified for confinement and with the actual path to where the application lives, this lands in ~/.local/share/applications. The target is to have unity8 not use the desktop files but to eventually launch them through upstart.

To see the click packages installed for your user (phablet), just run click list. If you want to see the manifests for these click packages just run click list --manifest

Where to get more info?

There's isn't much lying around, but Colin has made info available on readthedocs, with regards to security, a good starting point is the security team's wiki.

Contents © 2013 Sergio Schvezov - Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. - Powered by Nikola