http://bkhome.org/blog/?viewDetailed=02681
Hope changes to .mo files doesn't conflict?
Aitch
![Smile :)](./images/smilies/icon_smile.gif)
Yes I saw it, but no there won't be conficts, quite the opposite in fact...Aitch wrote:Have you seen this, sc0ttman?
http://bkhome.org/blog/?viewDetailed=02681
Hope changes to .mo files doesn't conflict?
Aitch
I can only suggest posting that query on his blog, and maybe linking to your thread?I do not know how Barry has integrated SSS and such with jwm_menu_create...
I do keep up with his blog, and now, the Woof2 timeline, which is great, I love it... But I don't think I will trouble him with this, as Akita does not follow all Woof/official updates and changes - I just pick and choose what I like... then adjust as I see fit... I do try to keep as much as possible 'in line' with other recent pups, so Akita can continue to benefit from future work in other pups, but it's a battle...Aitch wrote:sc0ttman
Looks as though Barry's changes are a work in progress, but he seems to expect devs to keep up with his blog for notification/response, if affected by his changes....
I can only suggest posting that query on his blog, and maybe linking to your thread?I do not know how Barry has integrated SSS and such with jwm_menu_create...
Aitch
Of course, I am using your mtpaint in Akita.don570 wrote:BTW I compiled mtpaint in puppy 431
To see what is directly linked to what:sc0ttman wrote:# ldd `which mtpaint` | sort | grep jp
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7f1e000)
libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0xb74e3000)
Code: Select all
#!/bin/sh
ldd "$1" | grep '=>' | while read LINE
do
LINE=${LINE% (*}
echo "$LINE"
LINE=${LINE#*=> }
[ -z "$LINE" ] || objdump -x "$LINE" | grep NEEDED
done
thanks for the readelf counterpart to objdump -x, I will add that as alternative for my lddd function in bashbox (basically the same as your example, except that it also removes the "NEEDED")wjaguar wrote: objdump -x `which mtpaint` | grep NEEDED
or:
readelf -d `which mtpaint` | grep NEEDED
[/code]
Code: Select all
#!/bin/sh
if [ elinks -remote ping\(\) 2>/dev/null ]; then
exec elinks -remote ${1:-about:blank}
elif [ -n "$DISPLAY" ]; then
TERM=rxvt && mrxvt -geometry 100x36 -e elinks $1 &
else
elinks $1
fi
exit 0
Code: Select all
SHELLPID=$$
TERMPID=`ps -eo ppid,pid,comm |awk '{if ($2=='$SHELLPID')print $1}'`
ps -eo pid,comm |awk '/'$TERMPID'/ {print $2}'
Thanks techno, I will play with that...technosaurus wrote:ugggghly but to tell which terminal emulator is runningit does not determine whether it is a symlink though - you need readlink, or type -aCode: Select all
SHELLPID=$$ TERMPID=`ps -eo ppid,pid,comm |awk '{if ($2=='$SHELLPID')print $1}'` ps -eo pid,comm |awk '/'$TERMPID'/ {print $2}'
Code: Select all
[ "$DISPLAY" ] && [ "$(tty | grep not)" ] && exec $TERM -e elinks $1
Hmmm... About your uuuuugly snippet.... It seems to work only when running the commands themselves directly in the terminal, but not when not putting the commands into a script... I've put the snippet into a script, elinks.sh, and here's what I get:technosaurus wrote:I think you have $DISPLAY figured out (that if it isn't "", you are in X)
If tty returns "", then you must have run from X from outside of a terminal.
I'm on my Droid or I'd give an example ... Basically put tty in backticks and compare to "" ... Is have to experiment with return values though.
Code: Select all
SHELLPID=$$
SHELLPPID=`ps -eo ppid,pid,comm |awk '{if ($2=='$SHELLPID')print $1}'`
SHELLPARENT=`ps -eo pid,comm |awk '/'$SHELLPPID'/ {print $2}'`
case "$SHELLPARENT" in
*rxvt|*term)...;;
*sh)#todo - make getparent function so we can call it again;;
*)$TERM -e...;;
esac