ubuntustudio-default-settings package

Scott Lavender scottalavender at gmail.com
Thu Feb 16 23:07:42 UTC 2012

On Wed, Feb 15, 2012 at 1:16 AM, Len Ovens <len at ovenwerks.net> wrote:
> Hi Scott,
> Micahg said to look at the postinst on xubuntu-default-settings on how to
> set sessions etc. I also downloaded and pulled apart US package. It looks
> like our postinst has been over written by our postrm as they are
> identical. Anyway, xubuntu has:
> ---------------------8<--------------------------
> #! /bin/sh
> 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=xubuntu
> || true
>      /usr/lib/lightdm/lightdm-set-defaults --keep-old
> --greeter=lightdm-gtk-greeter || true
>    fi
>    ;;
> esac
> if [ "$1" = "configure" ] ; then
>  update-alternatives --install /etc/lightdm/lightdm-gtk-greeter.conf \
>    lightdm-gtk-greeter-config-derivative \
>    /etc/xdg/xdg-xubuntu/lightdm/lightdm-gtk-greeter.conf 30
> fi
> ------------------8<---------------------------------
> At the top.
> The first line sets the default session (xubuntu in this case)
> The second sets lightdm to use the file thats there instead of
> default.desktop :-)
> and the third sets up a link... our file is
> /etc/lightdm/ubuntustudio-lightdm-gtk-greeter.conf But we should probably
> also move that to
> /etc/xdg/xdg-ubuntustudio/lightdm/lightdm-gtk-greeter.conf
> I don't know what the 30 is for, it doesn't seem to be file size... and
> the path to the backdrop needs to be fixed too.
> --
> Len Ovens
> www.OvenWerks.net

okay len, i am working on these items and wanted to share information.
 i see five issues here, which are taking from irc logs [0].

1. default session to be set (which has three components)

a. i knew that xubuntu's method for updating the lightdm theme
woudln't work for ubuntu studio, but they have updated their code
which i will implement now, thanks micahg, knome, and mrpout (?)
b. thank you for pointing out i need to replace "--session=xubuntu"
with "--session=ubuntustudio"
c. it appears that you are correct about the postinst and postrm
files, i'm not sure how i managed this but i am sure i did it

2. "user-session=xfce" in lightdm.conf file

this should be resolved when i implement the proper postinst file as
it will configure lightdm (using the correct session noted in #1
above) and create this config file

3. /path/to/lightdm/backgrounds

two silly things about this.  we have the wrong path (completely my
fault) and we were trying to use a .png that doesn't ship.  it should
probably be /user/share/xfce/backdrops/file_that_actually_exists.png

4. stalling during boot and doing the alt-f1 / symlink bidness

this should go away (scottl crosses fingers) with the new postinst
file which should configure lightdm properly (not just create the
config file, mind you)

5. greeter-session=lightdm-gtk-greeter

this is okay because the lightdm-gtk-greeter file is actually a
symlink to whatever session filename is configured.  in our case it
should point to ubuntustudio-lightdm-gtk-greeter (although this may
not be the actual name, i'll check on my ubuntu machine at home when
doing the code again)

lastly, i want to thank you again len for the great things you are
doing.  they have all been a HUGE help to the me, the team, ubuntu
studio, and all ubuntu studio users!


[0] http://irclogs.ubuntu.com/2012/02/15/%23ubuntustudio-devel.html

More information about the Ubuntu-Studio-devel mailing list