~libertine-team/libertine/trunk

« back to all changes in this revision

Viewing changes to data/puritine-click.conf

  • Committer: Bileto Bot
  • Date: 2016-06-07 12:44:02 UTC
  • mfrom: (129.1.2 libertine.release-1.1)
  • Revision ID: ci-train-bot@canonical.com-20160607124402-mq9wqlm0s6yoin90
* Set up a new proxy socket for the maliit server.
* Remove the demo icons and desktop files and deprecate libertine-demo.
  (LP: #1575315)
* Explicitly create .config/dconf and the common XDG data directories in the
  user container's mapped home directory in order to make sure the file
  permissions are correct. (LP: #1570961) (LP: #1581131)
* Bump version to 1.1.
* Make it possible for the user to interact with debconf prompts from apt-get.
  (LP: #1518814)
* Refactor ContainerManagerWorker to use the async QProcess API.
* Reap children processes when closing GUI and attempt to recover as necessary.
* Implement bash auto-completion for libertine-container-manager.
  (LP: #1580610)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
description "Puritine Click chroot linking"
2
 
 
3
 
start on starting unity8
4
 
 
5
 
script
6
 
PACKAGE_PATH=`click pkgdir com.ubuntu.puritine`
7
 
CONTAINER_NAME=puritine
8
 
CHROOT_PATH=$PACKAGE_PATH/libertine-data/libertine-container/$CONTAINER_NAME
9
 
 
10
 
if [ -x $CHROOT_PATH/rootfs ] ; then
11
 
        # Link the chroot
12
 
        if [ ! -L $HOME/.cache/libertine-container/$CONTAINER_NAME/rootfs ] ; then
13
 
                mkdir -p $HOME/.cache/libertine-container/$CONTAINER_NAME/
14
 
                ln -s $CHROOT_PATH/rootfs $HOME/.cache/libertine-container/$CONTAINER_NAME/rootfs
15
 
        fi
16
 
 
17
 
        # Copy or merge the container config files
18
 
        if [ ! -e $HOME/.local/share/libertine/ContainersConfig.json ] ; then
19
 
                mkdir -p $HOME/.local/share/libertine/
20
 
                cp $PACKAGE_PATH/libertine-config/libertine/ContainersConfig.json $HOME/.local/share/libertine/ContainersConfig.json
21
 
        elif [ -L $HOME/.local/share/libertine/ContainersConfig.json ] ; then
22
 
                rm $HOME/.local/share/libertine/ContainersConfig.json
23
 
                cp $PACKAGE_PATH/libertine-config/libertine/ContainersConfig.json $HOME/.local/share/libertine/ContainersConfig.json
24
 
        else
25
 
                libertine-container-manager merge-configs -f $PACKAGE_PATH/libertine-config/libertine/ContainersConfig.json    
26
 
        fi
27
 
 
28
 
        # Create and copy the user-data dir from the click package
29
 
        if [ ! -d $HOME/.local/share/libertine-container/user-data/$CONTAINER_NAME ] ; then
30
 
                cp -dR $PACKAGE_PATH/libertine-config/libertine-container/ $HOME/.local/share/libertine-container/
31
 
        fi
32
 
else
33
 
        rm -rf $HOME/.cache/libertine-container/$CONTAINER_NAME
34
 
        if [ $(libertine-container-manager list | grep -v ${CONTAINER_NAME} | wc -l) -eq 0 ]; then
35
 
                rm -rf $HOME/.local/share/libertine
36
 
        fi
37
 
        rm -rf $HOME/.local/share/libertine-container/user-data/$CONTAINER_NAME/.config/
38
 
fi
39
 
end script