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 Wed 27 Aug 2014, 07:05
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Xvnkb failed with Puppy 2 ?
Moderators: Lobster, MU, raffy
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
phantrongnghia


Joined: 24 Apr 2006
Posts: 205
Location: Hanoi,Vietnam

PostPosted: Tue 20 Jun 2006, 20:21    Post_subject:  Xvnkb failed with Puppy 2 ?  

I compiled xvnkb(ver 0.2.9) from source and can typing vietnamese( because I prefer
xvnkb than x-unikey) but one problem occured:
- I can not run "Connect to internet by cable interface" and all appication in Wizard Wizard, I only run it by type command in console( such as net-setup.sh)
- How to fix this problem ,Hacao, MU ?
Thanks
Back to top
View user's profile Send_private_message Visit_website YIM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 20 Jun 2006, 22:06    Post_subject:  

Man, this is tricky...

rename
/usr/sbin/wizardwizard
to
/usr/sbin/wizardwizard0

copy
/etc/ld.so.preload
to
/etc/ld.so.preload-MU

create a new script
/usr/sbin/wizardwizard

Code:
#!/bin/sh
rm -f /etc/ld.so.preload
wizardwizard0 &
sleep 2
cp /etc/ld.so.preload-MU /etc/ld.so.preload


make it executable with this command:
chmod 755 /usr/sbin/wizardwizard

That's it.

Explanation:
xvnkb creates /etc/ld.so.preload.
It has this entry:
/lib/xvnkb.so.0.2.9-1

This means, BEFORE any application loads, this library is loaded.
This library manipulates the input-streams to grab the keystrokes, when you type characters on the keyboard.

The problem:
Gtkdialog uses streams itself, to pass shell-commands to Gtk (somehow, don't ask me Details Wink ).
This gets broken, when another program like xvnkb.so.0.2.9-1 uses this, too.
I only found one solution:
instead of wizardwizard, you run my new script.
It deletes /etc/ld.so.preload, so that xvnkb.so.0.2.9-1 will not start, when we run the next command wizardwizard0 (what is Puppys wizard).
Then we wait 2 seconds, and restore /etc/ld.so.preload, so that all other programs will use it again.

Maybe there is a cleaner solution to prevent a program from using preload, but I don't know that Confused
So see my description as a "workaround", not as a solution how things should be done, if you would write a book about it.

Mark
Back to top
View user's profile Send_private_message Visit_website 
phantrongnghia


Joined: 24 Apr 2006
Posts: 205
Location: Hanoi,Vietnam

PostPosted: Tue 20 Jun 2006, 22:22    Post_subject:  

Yes. it worked !
xvnkb conflicted with abiword 2.4 ?
Thanks
Back to top
View user's profile Send_private_message Visit_website YIM 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 20 Jun 2006, 22:26    Post_subject:  

Quote:
xvnkb conflicted with abiword 2.4 ?


Yes, I could not type vietnamese.
I had to use abiword20 instead Crying or Very sad
Mark
Back to top
View user's profile Send_private_message Visit_website 
phantrongnghia


Joined: 24 Apr 2006
Posts: 205
Location: Hanoi,Vietnam

PostPosted: Sun 02 Jul 2006, 10:16    Post_subject:  

It also apply for wizardwizard
But I want apply to all app (such as pupget...)

How to ?

Thanks
Back to top
View user's profile Send_private_message Visit_website YIM 
phantrongnghia


Joined: 24 Apr 2006
Posts: 205
Location: Hanoi,Vietnam

PostPosted: Wed 05 Jul 2006, 19:06    Post_subject:  

Does xvnkb support GTK_IM_MODULE ?

Thanks
Back to top
View user's profile Send_private_message Visit_website YIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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