Merge lp:~robert-ancell/unity-system-compositor/lightdm-conf.d into lp:unity-system-compositor

Proposed by Robert Ancell
Status: Merged
Approved by: Chris Halse Rogers
Approved revision: 30
Merged at revision: 29
Proposed branch: lp:~robert-ancell/unity-system-compositor/lightdm-conf.d
Merge into: lp:unity-system-compositor
Diff against target: 112 lines (+3/-74)
7 files modified
debian/10-unity-system-compositor.conf (+2/-0)
debian/config (+0/-7)
debian/install (+1/-0)
debian/po/POTFILES.in (+0/-1)
debian/po/templates.pot (+0/-40)
debian/postinst (+0/-17)
debian/templates (+0/-9)
To merge this branch: bzr merge lp:~robert-ancell/unity-system-compositor/lightdm-conf.d
Reviewer Review Type Date Requested Status
Chris Halse Rogers Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+170730@code.launchpad.net

Commit message

Use lighdm.conf.d instead of debconf

Description of the change

Use /etc/lightdm/lightdm.conf.d which is supported in lightdm >= 1.7.3. Makes it simpler to have package dependent configuration.

To post a comment you must log in.
30. By Robert Ancell

Add missing files

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote :

It doesn't do quite the same thing as the debconf question, but I don't think that's a problem. People can always disable unity-system-compositor by deleting/commenting the conf.d snippet.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debian/10-unity-system-compositor.conf'
--- debian/10-unity-system-compositor.conf 1970-01-01 00:00:00 +0000
+++ debian/10-unity-system-compositor.conf 2013-06-21 03:12:24 +0000
@@ -0,0 +1,2 @@
1[SeatDefaults]
2type=unity
03
=== removed file 'debian/config'
--- debian/config 2013-06-13 04:02:29 +0000
+++ debian/config 1970-01-01 00:00:00 +0000
@@ -1,7 +0,0 @@
1#!/bin/sh -e
2
3# Source debconf library.
4. /usr/share/debconf/confmodule
5
6db_input low unity-system-compositor/enable || true
7db_go
80
=== added file 'debian/install'
--- debian/install 1970-01-01 00:00:00 +0000
+++ debian/install 2013-06-21 03:12:24 +0000
@@ -0,0 +1,1 @@
1debian/10-unity-system-compositor.conf /etc/lightdm/lightdm.conf.d
02
=== removed directory 'debian/po'
=== removed file 'debian/po/POTFILES.in'
--- debian/po/POTFILES.in 2013-06-13 04:02:29 +0000
+++ debian/po/POTFILES.in 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1[type: gettext/rfc822deb] templates
20
=== removed file 'debian/po/templates.pot'
--- debian/po/templates.pot 2013-06-13 04:02:29 +0000
+++ debian/po/templates.pot 1970-01-01 00:00:00 +0000
@@ -1,40 +0,0 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#
6#, fuzzy
7msgid ""
8msgstr ""
9"Project-Id-Version: unity-system-compositor\n"
10"Report-Msgid-Bugs-To: unity-system-compositor@packages.debian.org\n"
11"POT-Creation-Date: 2013-06-12 14:47+1000\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
15"Language: \n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"
19
20#. Type: boolean
21#. Description
22#: ../templates:1001
23msgid "Use Unity system compositor?"
24msgstr ""
25
26#. Type: boolean
27#. Description
28#: ../templates:1001
29msgid ""
30"The Unity system compositor provides improved graphical smoothness to "
31"startup, user-switching, and shutdown."
32msgstr ""
33
34#. Type: boolean
35#. Description
36#: ../templates:1001
37msgid ""
38"If the system compositor is enabled, but fails to work, LightDM will fall "
39"back to a regular session. It should be safe to enable the system compositor."
40msgstr ""
410
=== removed file 'debian/postinst'
--- debian/postinst 2013-06-13 04:02:29 +0000
+++ debian/postinst 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1#!/bin/sh -e
2
3. /usr/share/debconf/confmodule
4
5db_get unity-system-compositor/enable
6
7# Update LightDM defaults to match debconf, respecting any manual changes
8if [ "$RET" = "true" ]; then
9 # --keep-old will only change the type if there is not already a type set
10 /usr/lib/lightdm/lightdm-set-defaults --keep-old --type=unity
11else
12 # --remove will only remove if the type is currently set to "unity"
13 # Will exit with status 4 if the user has changed the value, so ignore that.
14 /usr/lib/lightdm/lightdm-set-defaults --remove --type=unity || [ $? = 4 ]
15fi
16
17#DEBHELPER#
180
=== removed file 'debian/templates'
--- debian/templates 2013-06-13 04:02:29 +0000
+++ debian/templates 1970-01-01 00:00:00 +0000
@@ -1,9 +0,0 @@
1Template: unity-system-compositor/enable
2Type: boolean
3Default: true
4_Description: Use Unity system compositor?
5 The Unity system compositor provides improved graphical smoothness to startup,
6 user-switching, and shutdown.
7 .
8 If the system compositor is enabled, but fails to work, LightDM will fall back
9 to a regular session. It should be safe to enable the system compositor.

Subscribers

People subscribed via source and target branches