bfabiszewski / kterm

gtk+ terminal emulator with embedded virtual keyboard for Kindle
GNU General Public License v3.0
216 stars 21 forks source link

not honouring HOME envvar, nor parsing own BIN directory #4

Closed twobob closed 10 years ago

twobob commented 11 years ago

Am I missing something?

setting the PATH and then calling KTERM I only get the global envvars?

also - it's own BIN directory is not honoured/parsed....

Is there a BETTER way to call kterm???

bfabiszewski commented 11 years ago

Do you mean this? [root@kindle bin]# PATH=/mypath ./kterm

twobob commented 11 years ago

right. PATH=/mypath:$PATH ./kterm or PATH=/mypath ./kterm

That doesn't work. far as I can tell..

bfabiszewski commented 11 years ago

Maybe I don't understand what you are trying to achieve.

I start kterm with command: "PATH=/mypath ./kterm". Then in kterm echo $PATH would give "/mypath".

twobob commented 11 years ago

really?

let me try that again then...

twobob commented 11 years ago

no. That doesn't happen for me.? [root@kindle root]# PATH=/mnt/us/extensions/kterm/bin/ /mnt/us/extensions/kterm/bin/kterm

and the PATH with be the regular set. selection_631

confused.

bfabiszewski commented 11 years ago

I can't reproduce it. It works on my Kindle. Did you change default shell? What happens if you export the variable before starting kterm:

[root@kindle root]# export PATH=/test
[root@kindle root]# /mnt/us/extensions/kterm/bin/kterm
twobob commented 10 years ago

I'll try that then.

and as far as I know nothing has been changed.

bfabiszewski commented 10 years ago

Or maybe you test it running the script from KUAL? Java environment overrides some env vars. See this post and read whole discussion