LXDE and THE DM and my lxdm

Discussion on LXDE releases and Development. This forum is not the best way to contact the developers, please use the Development mailing list and Sourceforge to interact with them.
dgod
Posts: 9
Joined: Sun Sep 06, 2009 9:16 am

LXDE and THE DM and my lxdm

Post by dgod »

Sorry for my bad english first.

I use LXDE sometime, and very like it, in my experience, there are no good dm for lxde.

gdm: have too many dependency
kdm: is based on qt
xdm: is not easy to configure with lxdm
slim: is in "SLiM is looking for a new maintainer!"

So I write one, I call it lxdm, it's very small, use gdk and Xlib to work, I test it on fedora 11 and can work properly.

May there any one like to try it?
Attachments
lxdm-0.0.1.tar.gz
(5.23 KiB) Downloaded 614 times
PCMan
Posts: 85
Joined: Mon Oct 06, 2008 9:52 am

Re: LXDE and THE DM and my lxdm

Post by PCMan »

Haven't got it tested because I'm not able to logout now.
However, I've reviewed the source code.
Thank you for the contribution and this is really what we currently need.

Some comments and suggestions:
1. Register an account on SF.net and then you can put this in lxde repository.
2. Using pango + cairo is a good decision making as this provides full i18n + rendering support.
3. Since you mostly use pango + cairo + X, maybe gdk is not needed and you can directly use their X11 backends to reduce dependency.
4. If you're using gdk, there is no reason not to use gtk+ at the same time since you almost use everything from gtk+. Simply redoing everything in X won't give you enough visible speedup, and that doesn't worth the effort, either.
5. Without GTK+, some advanced UI won't be available like menus, options, or dialogs. For example, gdm provides a list of available DEs and a menu to change locale, which I consider quite useful for the users and a must-have for DMs.
6. Theming support is absolutely needed. At least setting background image is needed.
7. Maybe listing existing users on the system is a good idea. This is quite user-friendly.
8. If 7 is going to be implemented, of course using gtk+ is much easier and theming can be done through gtkrc.
PCMan
Posts: 85
Joined: Mon Oct 06, 2008 9:52 am

Re: LXDE and THE DM and my lxdm

Post by PCMan »

BTW, how will this interact with ConsoleKit?
I don't get how ConsoleKit work, but it seems that it's going to be widely adopted in modern distros.
Besides, GUI buttons or menu options for shutdown or reboot is much more user-friendly.
I don't know how DMs work. However, if you can do all the underlying DM parts and make it work correctly, I can try to redo the GUI in gtk+ later.
dgod
Posts: 9
Joined: Sun Sep 06, 2009 9:16 am

Re: LXDE and THE DM and my lxdm

Post by dgod »

1 Yes, I'll rewrite it to gtk future, all you say will be done

2 ConsoleKit is done by X11 it self, to fedora lxdm has Consolekit support

3 I know gtk, but not know it well, all DM support is in lxdm.c, and ui things is at ui.c, you can easily rewrite it to use gtk.

4 dependency is not important, if it not exceed gtk. for lxdm is target at lxde.

really, I don't know svn or git well, but I'll try them.
Neal
Posts: 19
Joined: Wed Aug 12, 2009 9:34 am

Re: LXDE and THE DM and my lxdm

Post by Neal »

This interests me. :)
anubisg1
Posts: 12
Joined: Sun May 24, 2009 3:58 pm

Re: LXDE and THE DM and my lxdm

Post by anubisg1 »

actually i can't compile it, looks 2 headers are missing (lxdm.h and ui.h) in the tarball you provide:

Code: Select all

anubis@suse-laptop:~/Desktop/lxdm-0.0.1> make
cc -Wall -g `pkg-config --cflags gtk+-2.0`   -c -o lxdm.o lxdm.c
lxdm.c:20:18: error: lxdm.h: No such file or directory          
lxdm.c:21:16: error: ui.h: No such file or directory            
lxdm.c: In function ‘auth_user’:                                
lxdm.c:63: error: ‘AUTH_ERROR’ undeclared (first use in this function)
lxdm.c:63: error: (Each undeclared identifier is reported only once   
lxdm.c:63: error: for each function it appears in.)                   
lxdm.c:65: error: ‘AUTH_BAD_USER’ undeclared (first use in this function)
lxdm.c:73: error: ‘AUTH_SUCCESS’ undeclared (first use in this function) 
lxdm.c:78: error: ‘AUTH_FAIL’ undeclared (first use in this function)    
lxdm.c:98: error: ‘AUTH_PRIV’ undeclared (first use in this function)    
lxdm.c:101: warning: control reaches end of non-void function            
lxdm.c: In function ‘do_auto_login’:                                     
lxdm.c:418: error: ‘AUTH_SUCCESS’ undeclared (first use in this function)
lxdm.c: In function ‘main’:
lxdm.c:522: warning: implicit declaration of function ‘ui_set_bg’
lxdm.c:525: warning: implicit declaration of function ‘ui_main’
make: *** [lxdm.o] Error 1

anubis@suse-laptop:~/Desktop/lxdm-0.0.1> ls
lxdm.c  lxdm.conf  Makefile  ui.c
anubis@suse-laptop:~/Desktop/lxdm-0.0.1>
dgod
Posts: 9
Joined: Sun Sep 06, 2009 9:16 am

Re: LXDE and THE DM and my lxdm

Post by dgod »

anubisg1 wrote:actually i can't compile it, looks 2 headers are missing (lxdm.h and ui.h) in the tarball you provide:
It's my error, anonther version here

1 support set the background image
2 support select session, use the F1 key to select
Attachments
lxdm-0.0.2.tar.gz
(6.29 KiB) Downloaded 611 times
slimtop
Posts: 19
Joined: Tue Sep 01, 2009 10:11 am

Re: LXDE and THE DM and my lxdm

Post by slimtop »

How do you replace Slim with this? Is autologin possible?
dgod
Posts: 9
Joined: Sun Sep 06, 2009 9:16 am

Re: LXDE and THE DM and my lxdm

Post by dgod »

replace slim with this is just according to what linux distibution you used.

autologin is possible, just modify /etc/lxdm.conf.
phane
Posts: 5
Joined: Thu Aug 06, 2009 4:35 pm

Re: LXDE and THE DM and my lxdm

Post by phane »

never mine
Last edited by phane on Mon Sep 07, 2009 4:20 pm, edited 2 times in total.
Locked