~ubuntu-branches/ubuntu/wily/ubuntu-netbook-remix-default-settings/wily

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-12-13 21:56:50 UTC
  • Revision ID: james.westby@ubuntu.com-20091213215650-bf5fup0hdfgldq0q
Tags: 0.6.8
* shape une session and enable ubuntu GNOME installation on the same
  system: (LP: #496301)
  - add une.mandatory.path to include the new une session mandatory path
    in gconf
  - rename debian/gconf.default to debian/20_une-gconf-mandatory to
    avoid dh_gconf taking it into account
  - add une.desktop (use no more gnome.desktop file)
  - add those three previous files to debian/install
  - remove dh_gconf specific call in debian/rules
  - add debian/{postinst;postrm}:
    + register and remove gconf une mandatory value in non standard path
    + call gdm-set-default-session to add une as default session only if
      no other previous default session and remove if default

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
case "$1" in
 
5
  configure|upgrade)
 
6
    if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
 
7
        /usr/lib/gdm/gdm-set-default-session --keep-old une || true
 
8
    fi
 
9
    if which update-gconf-defaults >/dev/null 2>&1 ; then
 
10
        mkdir -p /var/lib/gconf/une.mandatory
 
11
        update-gconf-defaults --source /usr/share/gconf/une/mandatory \
 
12
        --destination /var/lib/gconf/une.mandatory
 
13
    fi
 
14
    ;;
 
15
esac
 
16
 
 
17
#DEBHELPER#