Re: Enable numlock in ldm greeter

"Leo Eraly" <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
Hi,

After some discussion on IRC I worked on a patch that does not require
numlockx to be available.


Feedback is welcome...


Leo


On Thu, Jul 10, 2008 at 1:09 AM, Leo Eraly <[email protected]> wrote:
> On Thu, Jul 10, 2008 at 1:01 AM, Leo Eraly <[email protected]> wrote:
>> On Wed, Jul 9, 2008 at 11:58 PM, Leo Eraly <[email protected]> wrote:
>>>
>>> On Wed, Jul 9, 2008 at 1:48 PM, Gideon Romm <[email protected]> wrote:
>>>>
>>>> If this is a patch to LDM - and unique to LDM - then the lts.conf variable should be:
>>>>
>>>> LDM_NUMLOCK
>>>>
>>>> If, at some point, a non-ldm-unique way to enable numlock is coded, then the lts.conf param should be made more universal.
>>>
>>> Ok, this sounds reasonable. Any other things I need to add?
>>>
>>>
>>> Leo
>>
>> Attached is an updated version of my patch, with the suggestions incorporated.
>>
>
> And off course also the patch to lts-parameters.txt
>
>
> Leo
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
ldm-xtst.patch (text/x-patch, 1 KB)
=== modified file 'configure.ac'
--- configure.ac	2008-07-01 21:55:44 +0000
+++ configure.ac	2008-07-16 18:17:18 +0000
@@ -21,6 +21,7 @@
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
 PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.6.0)
 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.2)
+PKG_CHECK_MODULES(XTST, xtst >= 1.0.3)
 
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
@@ -28,6 +29,8 @@
 AC_SUBST(GOBJECT_LIBS)
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
+AC_SUBST(XTST_CFLAGS)
+AC_SUBST(XTST_LIBS)
 
 IT_PROG_INTLTOOL([0.35.0])
 

=== modified file 'gtkgreet/Makefile.am'
--- gtkgreet/Makefile.am	2008-04-01 15:21:56 +0000
+++ gtkgreet/Makefile.am	2008-07-16 18:18:17 +0000
@@ -5,7 +5,8 @@
 ldmgtkgreet_SOURCES = hostwin.c ../src/ldm-getenv-bool.c greeter.c langwin.c ldminfo.c \
                       sesswin.c greeter.h
 
-ldmgtkgreet_LDADD = $(GTK_LIBS)
+ldmgtkgreet_LDADD = $(GTK_LIBS) $(XTST_LIBS)
 AM_CPPFLAGS = $(GTK_CFLAGS) \
+	      $(XTST_CFLAGS) \
               -DLOCALE_DIR=\""$(datadir)/locale"\" \
               -DLDM_THEME_DIR=\""$(datadir)/ldm/themes/"\"
greeter.c.patch4 (application/octet-stream, 1.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.