Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 12:31
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
xlock and /etc/X11/app-defaults/XLock config file [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1781
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 01 Apr 2013, 11:19    Post subject:  xlock and /etc/X11/app-defaults/XLock config file [SOLVED]  

Hello,
Running Racy 5.3, while modifying lines inside /etc/X11/app-defaults/XLock xlock config file, I succeeded in getting additional xlock options to work and especially login text/messages to be displayed in French. This can indeed be so useful for users who do absolutely not read any English word! Running Puppy Precise 5.4.3, this doesn't work anymore and /etc/X11/app-defaults/XLock config file seems not to be taken into account by xlock.
Has anybody an idea of what has to be configured or modified for xlock to use this config file?

Quote:

[...]
XLock.username: Nom utilisateur:
XLock.password: Mot de passe:
XLock.info: Entrer le mot de passe pour deverouiller la session - Cliquer sur l'icone pour la verrouiller.
XLock.validate: Validation...
XLock.invalid: Mot de passe incorrect.
XLock.invalidCapsLock: Mot de passe incorrect, touche majuscule active.
XLock.logoutButtonLabel: Cliquer ici pour fermer la session
XLock.logoutButtonHelp: \
Vous devriez quitter cette session si aucun terminal n'est disponible.\n\
ATTENTION: Les applications ouvertes risquent de planter\n\
Vous devriez contacter le ou les utilisateurs si c'est possible\n\
avant de fermer la ou les session(s).
XLock.logoutFailedString: \
Echec de la tentative de fermeture de session.\n\
Impossible de fermer automatiquement la session de l'utilisateur courant.
[...]


Cordialement.

Last edited by Argolance on Tue 02 Apr 2013, 06:10; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 1781
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 02 Apr 2013, 06:09    Post subject:  

Hello,
This is a bug of xlockmore that can be fixed by copying XLock config file from /etc/X11/app-defaults/XLock to home directory.
Quote:
# xlock -help
usage:
xlock [-options ...]

where options include:
-help print out this message to standard output
-version print version number (if >= 4.00) to standard output
-resources print default resource file to standard output
-display displayname X server to contact
-visual visualname X visual to use
-parent parent window id (for inwindow)
-name resourcename class name to use for resources (default is XLock)
-delay usecs microsecond delay between screen updates
-batchcount num number of things per batch (deprecated)
-count num number of things per batch
-cycles num number of cycles per batch
-size num size of a unit in a mode, default is 0
-ncolors num maximum number of colors, default is 64
-saturation value saturation of color ramp
-bitmap filename bitmap file (sometimes xpm and ras too)
-erasemode erase-modename Erase mode to use (to ddisable set to no_fade)
-erasedelay num Erase delay for clear screen modes
-erasetime num Maximum time (sec) to be used by erase
-/+nolock turn on/off no password required
-/+inwindow turn on/off making xlock run in a window
-/+inroot turn on/off making xlock run in the root window
-/+remote turn on/off remote host access
-/+mono turn on/off monochrome override
-/+allowaccess turn on/off allow new clients to connect
-/+allowroot turn on/off allow root password to unlock (off ignored)
-/+debug whether to use debug xlock (yes/no)
-/+description whether to show mode description (yes/no)
-/+echokeys turn on/off echo '?' for each password key
-echokey char text character to use for echo key, default is '?'
-/+enablesaver turn on/off enable X server screen saver
-/+resetsaver turn on/off resetting of X server screen saver
-/+grabmouse turn on/off grabbing of mouse and keyboard
-/+grabserver turn on/off grabbing of server
-/+install whether to use private colormap if needed (yes/no)
-/+hide turn on/off user background manipulation
-/+mousemotion turn on/off sensitivity to mouse
-/+sound whether to use sound if configured for it (yes/no)
-/+showdate turn on/off date in password window
-/+timeelapsed turn on/off clock
-/+usefirst turn on/off using the first char typed in password
-/+verbose turn on/off verbosity
-nice level nice level for xlock process
-lockdelay seconds number of seconds until lock
-unlockdelay seconds number of seconds until unlock
-timeout seconds number of seconds before password times out
-font fontname font to use for password prompt
-planfont fontname font to use for plan message
-bg color background color to use for password prompt
-fg color foreground color to use for password prompt
-background color background color to use for password prompt
-foreground color foreground color to use for password prompt
-username string text string to use for Name prompt
-password string text string to use for Password prompt
-info string text string to use for instructions
-validate string text string to use for validating password message
-invalid string text string to use for invalid password message
-invalidCapsLock string text string to use for invalid password message with Caps Lock on
-geometry geom geometry for non-full screen lock
-icongeometry geom geometry for password window (location ignored)
-/+wireframe turn on/off wireframe
-/+use3d turn on/off 3d view
-delta3d value space between the center of your 2 eyes for 3d mode
-none3d color color to be used for null in 3d mode
-right3d color color to be used for the right eye in 3d mode
-left3d color color to be used for the left eye in 3d mode
-both3d color color to be used overlap in 3d mode
-program programname program to get messages from, usually fortune
-messagesfile formatted-filename formatted file of fortunes
-messagefile filename text file for mode
-message string text for mode
-messagefont fontname font for a specific mode
-cpasswd crypted-password text string of encrypted password
-startCmd string command to run at locktime
-endCmd string command to run when unlocking
-pipepassCmd string command into which to pipe the password when unlocking
-logoutCmd string command to run when automatically logging out
-mailCmd string command to run to check for mail
-mailIcon string Icon to display when there is mail
-nomailIcon string Icon to display when there is no mail
-dpmsstandby seconds seconds to wait before engaging DPMS standby
-dpmssuspend seconds seconds to wait before engaging DPMS suspend
-dpmsoff seconds seconds to wait before engaging DPMS off
-mode mode animation mode
where mode is one of:
ball Shows bouncing balls
dclock Shows a floating digital clock or message
-/+binary turn on/off binary clock display
-/+led turn on/off Light Emitting Diode seven segment display
-/+popex turn on/off population explosion counter
-/+forest turn on/off tropical forest destruction counter
-/+hiv turn on/off HIV infection counter
-/+lab turn on/off Animal Research counter
-/+veg turn on/off Animal Consumation counter
-/+time24 turn on/off 24 hour display
-/+y2k turn on/off Year 2000 countdown
-/+millennium turn on/off 3rd Millennium (1 January 2001) countdown
goop Shows goop from a lava lamp
lyapunov Shows lyapunov space
-/+cycle turn on/off colour cycling
mandelbrot Shows mandelbrot sets
-increment value increasing orders
-/+binary turn on/off Binary Decomposition colour modulation
-/+dem turn on/off Distance Estimator Method (instead of escape time)
-/+lyap render interior with Lyapunov measure
-/+alpha render interior with Alpha level sets
-/+index render interior with Alpha indexes
-/+pow turn on/off adding z^z
-/+sin turn on/off adding sin(z)
-/+cycle turn on/off colour cycling
matrix Shows the Matrix
penrose Shows Penrose's quasiperiodic tilings
-/+ammann turn on/off Ammann lines
solitaire Shows Klondike's game of solitaire
-/+trackmouse turn on/off the tracking of the mouse
spiral Shows a helical locus of points
blank Shows nothing but a black screen
random Shows a random mode (except blank)
-duration num how long a mode runs before changing to another
-modelist string list of modes to randomly choose from
-/+sequential turn on/off picking of modes sequentially
-/+fullrandom turn on/off full random choice of mode-options

Thanks.
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2480
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 02 Apr 2013, 08:35    Post subject: xlock and /etc/X11/app-defaults/XLock config file [
Subject description: [SOLVED] for ASCII only
 

Argolance wrote:
copy /etc/X11/app-defaults/XLock to home
confirmit, worked Cool
Thank you!

Stuff to think about how to integrate this into langpacks
though this is solved only if you restrict your message to ASCII (
no äöü
no áàéè...
no ....
) Wink

Watch your puppy playing solitaire (not included in xlock-gui):
Code:
 xlock -mode solitaire
Laughing

Some infos found in bk's/sources xlockmore-5.31-patched.tar.gz

xlock/resource-msg-fr.h wrote:
/*
* Resource messages for French
*/

#ifndef __RESOURCE_MSG_FR__
#define __RESOURCE_MSG_FR__

#define DEF_NAME "Nom : "
#define DEF_PASS "Mot de passe : "
#define DEF_VALID "Validation ..."
#define DEF_INVALID "Mot de passe invalide."
#define DEF_INVALIDCAPSLOCK "Mot de passe invalide, vérrouillage des majuscules actif."
#define DEF_INFO "Entrez le mot de passe ou choisissez l'icône pour verrouiller."

#ifdef HAVE_KRB5
#define DEF_KRBINFO "Entrez le mot de passe Kerberos ou choisissez l'icône pour verrouiller."
#endif /* HAVE_KRB5 */

#define DEF_COUNT_FAILED " essai a échoué."
#define DEF_COUNTS_FAILED " essais ont échoués."

#define DEF_BTN_LABEL "Fermer la session"
#define DEF_BTN_HELP "Cliquer ici pour fermer la session"
#define DEF_FAIL "Echec de la fermeture de session automatique"

#endif /* __RESOURCE_MSG_FR__ */
That is not gettext but compiled in translation Laughing
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1781
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 02 Apr 2013, 13:11    Post subject:  

Hello L18L,
Quote:
confirmit, worked
Thank you!
Very Happy
Quote:
Stuff to think about how to integrate this into langpacks though this is solved only if you restrict your message to ASCII...
I first wrote my messages without any accentuation because this was not working properly. Then, I tried using accents and saving my French file with the encoding to ISO-8859-1 and this worked fine. This can probably be done for every language?
Quote:
Watch your puppy playing solitaire (not included in xlock-gui):
Yes I saw this funny thing one time, but don't know how...
Thank you!

Cordialement.
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2480
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 02 Apr 2013, 14:50    Post subject:  

Argolance wrote:
... file with the encoding to ISO-8859-1 and this worked fine. This can probably be done for every language?..


I saved that file as iso8859-1 and OK

I have added

und Enter-Taste drücken

Merci et bonne nuit Very Happy

Russian, Greek, ..... Question
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0695s ][ Queries: 12 (0.0033s) ][ GZIP on ]