xlock and /etc/X11/app-defaults/XLock config file [SOLVED]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

xlock and /etc/X11/app-defaults/XLock config file [SOLVED]

#1 Post by Argolance »

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?
[...]
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, 10:10, edited 1 time in total.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#2 Post by Argolance »

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.
# 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.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

xlock and /etc/X11/app-defaults/XLock config file [

#3 Post by L18L »

Argolance wrote: copy /etc/X11/app-defaults/XLock to home
confirmit, worked 8)
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: Select all

 xlock -mode solitaire
:lol:

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 :lol:

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#4 Post by Argolance »

Hello L18L,
confirmit, worked
Thank you!
:D
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?
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.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#5 Post by L18L »

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 :D

Russian, Greek, ..... :?:

Post Reply