Question regarding the new login theme and using other gdm themes
Dennis Beekman
d.c.beekman.devel at gmail.com
Sat Oct 3 09:23:47 BST 2009
Sadly i have to report that even in the Beta version the loginscreen
background or colortscheme can not be altered.
I tried using gdmsetup but this doesn't allow anything to be changed...
other then automatic/manual login features.
In the old GDM you could switch the themes off and just have a standard
login windows with a logo and a background....
Is this feature not going to be part of the new setup ?
Dennis
On Tue, Sep 29, 2009 at 1:51 PM, Reinhard Tartler <siretart at ubuntu.com>wrote:
> أحمد المحمودي <aelmahmoudy at users.sourceforge.net> writes:
>
> > I think you mean those lines:
> >
> > su -s /bin/sh -c 'gconftool --set
> /desktop/gnome/background/picture_filename --type string
> /usr/share/images/xsplash/bg_2560x1600.jpg' gdm
> > su -s /bin/sh -c 'gconftool --set /desktop/gnome/interface/gtk-theme
> --type string HumanLogin' gdm
> >
> > But the problem I meant is branding a Ubuntu derivative by installing
> > some package. As far as I know a derivatve distro cannot do the above in
> > postinst script, so as to not override a possible sys. admin setting.
>
> That should be possible. Here is the full code of the postinst script:
>
> #set default theme for the gdm login screen
> if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt
> 2.28.0-0ubuntu7; then
> su -s /bin/sh -c 'gconftool --set
> /desktop/gnome/background/picture_filename --type string
> /usr/share/images/xsplash/bg_2560x1600.jpg' gdm
> su -s /bin/sh -c 'gconftool --set /desktop/gnome/interface/gtk-theme
> --type string HumanLogin' gdm
> fi
>
> this means that the theme is only updated on upgrades from jaunty or
> earlier. If you update it afterwards, the postinst (and hopefully future
> postinst as well) shouldn't override that.
>
> If you are creating a configuration package that updates the background
> in a similar way to gdm, then you should make sure that you Pre-Depend
> on gdm (>> 2.28.0-0ubuntu7) AFAIUI to ensure that the ubuntu gdm package
> is configured before your configuration package.
>
> FWIW, using something like puppet or cfengine would be my preferred way
> to implement that.
>
> --
> Gruesse/greetings,
> Reinhard Tartler, KeyID 945348A4
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20091003/10df20f0/attachment.htm
More information about the ubuntu-devel
mailing list