From 0f3d9ebad203529744bd29ebae98238e259432d7 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 8 Dec 2013 20:36:09 -0500 Subject: [PATCH] lightdm removed the lightdm-set-defaults application, this should fix setting the default session --- debian/10-lubuntu-nexus7.conf | 2 ++ debian/10-lubuntu.conf | 2 ++ debian/10-lxgames.conf | 2 ++ debian/10-qlubuntu.conf | 2 ++ debian/lubuntu-default-session.install | 1 + debian/lubuntu-default-session.postinst | 15 --------------- debian/lubuntu-default-session.postrm | 16 ---------------- debian/lubuntu-default-settings.postrm | 16 ---------------- debian/lubuntu-nexus7-default-session.install | 1 + debian/lubuntu-nexus7-default-session.postinst | 15 --------------- debian/lubuntu-nexus7-default-session.postrm | 16 ---------------- debian/lxgames-default-session.install | 1 + debian/lxgames-default-session.postinst | 15 --------------- debian/lxgames-default-session.postrm | 16 ---------------- debian/qlubuntu-default-session.install | 1 + debian/qlubuntu-default-session.postinst | 15 --------------- debian/qlubuntu-default-session.postrm | 16 ---------------- 17 files changed, 12 insertions(+), 140 deletions(-) create mode 100644 debian/10-lubuntu-nexus7.conf create mode 100644 debian/10-lubuntu.conf create mode 100644 debian/10-lxgames.conf create mode 100644 debian/10-qlubuntu.conf create mode 100644 debian/lubuntu-default-session.install delete mode 100644 debian/lubuntu-default-session.postinst delete mode 100644 debian/lubuntu-default-session.postrm delete mode 100644 debian/lubuntu-default-settings.postrm create mode 100644 debian/lubuntu-nexus7-default-session.install delete mode 100644 debian/lubuntu-nexus7-default-session.postinst delete mode 100644 debian/lubuntu-nexus7-default-session.postrm create mode 100644 debian/lxgames-default-session.install delete mode 100644 debian/lxgames-default-session.postinst delete mode 100644 debian/lxgames-default-session.postrm create mode 100644 debian/qlubuntu-default-session.install delete mode 100644 debian/qlubuntu-default-session.postinst delete mode 100644 debian/qlubuntu-default-session.postrm diff --git a/debian/10-lubuntu-nexus7.conf b/debian/10-lubuntu-nexus7.conf new file mode 100644 index 0000000..da4a43c --- /dev/null +++ b/debian/10-lubuntu-nexus7.conf @@ -0,0 +1,2 @@ +[SeatDefaults] +user-session=lubuntu-nexus7 diff --git a/debian/10-lubuntu.conf b/debian/10-lubuntu.conf new file mode 100644 index 0000000..6a54688 --- /dev/null +++ b/debian/10-lubuntu.conf @@ -0,0 +1,2 @@ +[SeatDefaults] +user-session=Lubuntu diff --git a/debian/10-lxgames.conf b/debian/10-lxgames.conf new file mode 100644 index 0000000..91a24f9 --- /dev/null +++ b/debian/10-lxgames.conf @@ -0,0 +1,2 @@ +[SeatDefaults] +user-session=lxgames diff --git a/debian/10-qlubuntu.conf b/debian/10-qlubuntu.conf new file mode 100644 index 0000000..3c08a3d --- /dev/null +++ b/debian/10-qlubuntu.conf @@ -0,0 +1,2 @@ +[SeatDefaults] +user-session=qlubuntu diff --git a/debian/lubuntu-default-session.install b/debian/lubuntu-default-session.install new file mode 100644 index 0000000..d9075ee --- /dev/null +++ b/debian/lubuntu-default-session.install @@ -0,0 +1 @@ +debian/10-lubuntu.conf etc/lightdm/lightdm.conf.d/ diff --git a/debian/lubuntu-default-session.postinst b/debian/lubuntu-default-session.postinst deleted file mode 100644 index e0bfb43..0000000 --- a/debian/lubuntu-default-session.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - configure|upgrade) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=Lubuntu || true - /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - -#DEBHELPER# -exit 0 diff --git a/debian/lubuntu-default-session.postrm b/debian/lubuntu-default-session.postrm deleted file mode 100644 index ccae28d..0000000 --- a/debian/lubuntu-default-session.postrm +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - remove|purge) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --remove --session=Lubuntu || true - /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - - -#DEBHELPER# -exit 0 diff --git a/debian/lubuntu-default-settings.postrm b/debian/lubuntu-default-settings.postrm deleted file mode 100644 index ccae28d..0000000 --- a/debian/lubuntu-default-settings.postrm +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - remove|purge) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --remove --session=Lubuntu || true - /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - - -#DEBHELPER# -exit 0 diff --git a/debian/lubuntu-nexus7-default-session.install b/debian/lubuntu-nexus7-default-session.install new file mode 100644 index 0000000..32ea39d --- /dev/null +++ b/debian/lubuntu-nexus7-default-session.install @@ -0,0 +1 @@ +debian/10-lubuntu-nexus7.conf etc/lightdm/lightdm.conf.d/ diff --git a/debian/lubuntu-nexus7-default-session.postinst b/debian/lubuntu-nexus7-default-session.postinst deleted file mode 100644 index f724bf0..0000000 --- a/debian/lubuntu-nexus7-default-session.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - configure|upgrade) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=lubuntu-nexus7 || true - /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - -#DEBHELPER# -exit 0 diff --git a/debian/lubuntu-nexus7-default-session.postrm b/debian/lubuntu-nexus7-default-session.postrm deleted file mode 100644 index d0b8878..0000000 --- a/debian/lubuntu-nexus7-default-session.postrm +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - remove|purge) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --remove --session=lubuntu-nexus7 || true - /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - - -#DEBHELPER# -exit 0 diff --git a/debian/lxgames-default-session.install b/debian/lxgames-default-session.install new file mode 100644 index 0000000..4978310 --- /dev/null +++ b/debian/lxgames-default-session.install @@ -0,0 +1 @@ +debian/10-lxgames.conf etc/lightdm/lightdm.conf.d/ diff --git a/debian/lxgames-default-session.postinst b/debian/lxgames-default-session.postinst deleted file mode 100644 index e59bdbe..0000000 --- a/debian/lxgames-default-session.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - configure|upgrade) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=lxgames || true - /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - -#DEBHELPER# -exit 0 diff --git a/debian/lxgames-default-session.postrm b/debian/lxgames-default-session.postrm deleted file mode 100644 index abe3cd2..0000000 --- a/debian/lxgames-default-session.postrm +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - remove|purge) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --remove --session=lxgames || true - /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=lightdm-gtk-greeter || true - fi - ;; -esac - - -#DEBHELPER# -exit 0 diff --git a/debian/qlubuntu-default-session.install b/debian/qlubuntu-default-session.install new file mode 100644 index 0000000..f747d7e --- /dev/null +++ b/debian/qlubuntu-default-session.install @@ -0,0 +1 @@ +debian/10-qlubuntu.conf etc/lightdm/lightdm.conf.d/ diff --git a/debian/qlubuntu-default-session.postinst b/debian/qlubuntu-default-session.postinst deleted file mode 100644 index 6077905..0000000 --- a/debian/qlubuntu-default-session.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - configure|upgrade) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=qlubuntu || true - /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-kde-greeter || true - fi - ;; -esac - -#DEBHELPER# -exit 0 diff --git a/debian/qlubuntu-default-session.postrm b/debian/qlubuntu-default-session.postrm deleted file mode 100644 index dc53c20..0000000 --- a/debian/qlubuntu-default-session.postrm +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -set -e - -case "$1" in - remove|purge) - if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then - /usr/lib/lightdm/lightdm-set-defaults --remove --session=qlubuntu || true - /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=lightdm-kde-greeter || true - fi - ;; -esac - - -#DEBHELPER# -exit 0