Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-21-2013, 04:03 AM   #46
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,198
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by nasser View Post
there seems to be a difference between logging in through ssh and "logging in" through kterm.. see screenshots..
ssh recognises the "new" home at /home/root..
while the kterm session is still hung up on /tmp/root..
My guess - -
kterm isn't being started in a "login shell" but instead in an "interactive shell".

Check how your copy of kterm is being invoked.
Or -
Start in new shell instance in kterm:
su -l (su - lower case ell)
and then check - -
just be sure to remember to 'exit' both levels of command shell in kterm.
knc1 is offline   Reply With Quote
Old 09-21-2013, 04:22 AM   #47
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
there seems to be a difference between logging in through ssh and "logging in" through kterm.. see screenshots..
ssh recognises the "new" home at /home/root..
while the kterm session is still hung up on /tmp/root..
What if you log in through ssh and start kterm from command line:
/mnt/us/extensions/kterm/bin/kterm.sh
baf is offline   Reply With Quote
 
Enthusiast
Old 09-21-2013, 04:36 AM   #48
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
Quote:
Originally Posted by knc1 View Post
My guess - -
kterm isn't being started in a "login shell" but instead in an "interactive shell".

Check how your copy of kterm is being invoked.
Or -
Start in new shell instance in kterm:
su -l (su - lower case ell)
and then check - -
just be sure to remember to 'exit' both levels of command shell in kterm.
see attached screenshot:
Check how your copy of kterm is being invoked. --> /mnt/us/extensions/kterm/bin/kterm..
Start in new shell instance in kterm: su -l (su - lower case ell) then check - -> now /home/root is correctly recognised..

So.. kterm is being started in an "interactive shell"?
How to make it start in a login shell?
Attached Thumbnails
Click image for larger version

Name:	kterm_root_home_scrshot.png
Views:	32
Size:	70.8 KB
ID:	111693  
nasser is offline   Reply With Quote
Old 09-21-2013, 04:42 AM   #49
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
Quote:
Originally Posted by baf View Post
What if you log in through ssh and start kterm from command line:
/mnt/us/extensions/kterm/bin/kterm.sh
nothing happens..
just get a blinking cursor.. which stops blinking after some time..
able to get back by ^C though..
nasser is offline   Reply With Quote
Old 09-21-2013, 04:47 AM   #50
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
nothing happens..
just get a blinking cursor.. which stops blinking after some time..
able to get back by ^C though..
hmm, do you mean kterm does not start on your kindle?
baf is offline   Reply With Quote
Old 09-21-2013, 05:04 AM   #51
ams
Member
ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.
 
Posts: 18
Karma: 26326
Join Date: Jul 2013
Device: K3 3.4, KT 5.1.2
Thanks for this great calculator, twobob.
Configuration changes done under View and Calculator work ok.
But in Edit->Preferences I can only exit with the Close button at the lower right and this button terminates the program instead of going back to the calculator screen (that's on KT, FW 5.1.2).

baf: How did you manage to operate in landscape on KT? I can change to landscape on the homescreen using the Orientation KUAL button but this is ignored by galculator.
ams is offline   Reply With Quote
Old 09-21-2013, 05:18 AM   #52
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
Quote:
Originally Posted by baf View Post
hmm, do you mean kterm does not start on your kindle?
whoops.. i hadn't observed the kindle's screen..

kterm does start on the kindle.. and when i type in echo ~, i get /home/root.. (when i start kterm through kual i get /tmp/root..)
nasser is offline   Reply With Quote
Old 09-21-2013, 05:21 AM   #53
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by ams View Post
baf: How did you manage to operate in landscape on KT? I can change to landscape on the homescreen using the Orientation KUAL button but this is ignored by galculator.
Maybe twobob didn't set orientation argument in title scheme.
I set: L:A_N:application_ID:galculator_PC:N_O:URL
Possible orientations: Up, Right, Left
Try to replace galculator binary from attached zip.
Attached Files
File Type: zip galculator.zip (47.5 KB, 20 views)
baf is offline   Reply With Quote
Old 09-21-2013, 05:22 AM   #54
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
whoops.. i hadn't observed the kindle's screen..

kterm does start on the kindle.. and when i type in echo ~, i get /home/root.. (when i start kterm through kual i get /tmp/root..)
The question is then, how scripts are started from kual and java environment.
baf is offline   Reply With Quote
Old 09-21-2013, 05:31 AM   #55
ams
Member
ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.ams is not intimidated by interfenestral monkeys.
 
Posts: 18
Karma: 26326
Join Date: Jul 2013
Device: K3 3.4, KT 5.1.2
Quote:
Originally Posted by baf View Post
Try to replace galculator binary from attached zip.
Thanks, landscape mode works fine now.
ams is offline   Reply With Quote
Old 09-21-2013, 05:33 AM   #56
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
Quote:
Originally Posted by baf View Post
Maybe twobob didn't set orientation argument in title scheme.
I set: L:A_N:application_ID:galculator_PC:N_O:URL
Possible orientations: Up, Right, Left
Try to replace galculator binary from attached zip.
will it work on a paperwhite? if yes, what's the way to change the orientation? your landscape mode screenshot really looks scrumptuous..
nasser is offline   Reply With Quote
Old 09-21-2013, 05:48 AM   #57
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
will it work on a paperwhite? if yes, what's the way to change the orientation? your landscape mode screenshot really looks scrumptuous..
Should work on PW. Try this run.sh
Code:
#!/bin/sh
init_orientation=`/usr/bin/lipc-get-prop com.lab126.winmgr orientationLock`
/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock R

GALCULATOR_CONFIG=/mnt/us/extensions/galculator/galculator.conf \
GTK_IM_MODULE=kindle \
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc \
/mnt/us/extensions/galculator/usr/bin/galculator

/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock ${init_orientation}
baf is offline   Reply With Quote
Old 09-21-2013, 05:54 AM   #58
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
thanks.. trying now..

Last edited by nasser; 09-21-2013 at 05:57 AM.
nasser is offline   Reply With Quote
Old 09-21-2013, 06:30 AM   #59
nasser
Groupie
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 191
Karma: 361098
Join Date: Feb 2010
Device: iPod touch 4g/Kindle Paperwhite
Quote:
Originally Posted by baf View Post
Should work on PW. Try this run.sh
Code:
#!/bin/sh
init_orientation=`/usr/bin/lipc-get-prop com.lab126.winmgr orientationLock`
/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock R

GALCULATOR_CONFIG=/mnt/us/extensions/galculator/galculator.conf \
GTK_IM_MODULE=kindle \
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc \
/mnt/us/extensions/galculator/usr/bin/galculator

/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock ${init_orientation}
Great.. it works on my PW..
i changed the binary as well as run.sh..
only thing.. the basic mode also opens in landscape orientation..
no way to retain it in portrait ..?
nasser is offline   Reply With Quote
Old 09-21-2013, 06:48 AM   #60
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by nasser View Post
Great.. it works on my PW..
i changed the binary as well as run.sh..
only thing.. the basic mode also opens in landscape orientation..
no way to retain it in portrait ..?
That would have to be changed in source files.
Another thing you can do now is get rid of the lines setting orientation.
And change orientation in ad hoc mode, for example from kual orientation button, before starting galculator.
Code:
#!/bin/sh
init_orientation=`/usr/bin/lipc-get-prop com.lab126.winmgr orientationLock`
/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock R

GALCULATOR_CONFIG=/mnt/us/extensions/galculator/galculator.conf \
GTK_IM_MODULE=kindle \
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc \
/mnt/us/extensions/galculator/usr/bin/galculator

/usr/bin/lipc-set-prop com.lab126.winmgr orientationLock ${init_orientation}
baf is offline   Reply With Quote
Reply

Tags
calculator, launcher add-ons, twobob

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Kindle for PC ver 1.5.0 seems to have died Mike L Amazon Kindle 4 07-31-2012 03:34 AM
Kindle Touch upgrade ver 5.1.0 Problem sigster Kindle Developer's Corner 5 04-30-2012 07:46 PM
Kindle 3 ver 3.3 will not jailbreak. berni29 Amazon Kindle 7 02-12-2012 10:11 AM
Ver 0.8.34 sirius911 Library Management 1 01-06-2012 09:05 AM


All times are GMT -4. The time now is 07:35 PM.


MobileRead.com is a privately owned, operated and funded community.