hi s243a,s243a wrote:There is a problem with how palemoon is called in tahrpup 6.0.5.
if I use the command defaultbrowser the following script is executed:
/usr/bin/palemoonWhich then executes:Code: Select all
#!/bin/sh APP='/usr/bin/palemoon.bin' #script to run $APP as spot... ARGS="" [ "$1" ] && while [ "$1" ]; do ARGS="$ARGS "$1""; shift; done if [ $(id -u) -eq 0 ]; then [ $XAUTHORITY ] && cp $XAUTHORITY /root/spot/.Xauthority 2>/dev/null touch /root/spot/.Xauthority #following line is mostly there to catch any root:root files that may have got copied in... find /root/spot \( -not -user spot -or -not -group spot \) -exec chown -h spot:spot {} \; & export XAUTHORITY=/root/spot/.Xauthority export XDG_CONFIG_HOME=/root/spot/.config export XDG_CACHE_HOME=/root/spot/.cache export XDG_DATA_HOME=/root/spot/.local/share exec su spot -s /bin/sh -c ""$APP" $ARGS" else #precaution exec "$APP" "$ARGS" fi
/usr/bin/palemoon.binwhich then executes:Code: Select all
#!/bin/sh /opt/palemoon/palemoon /usr/share/doc/home.htm & palemoon2
/usr/bin/palemoon2There are a few problems here. First the script palemoon2 tries to deleteCode: Select all
#!/bin/sh rm /usr/bin/palemoon ln -s /opt/palemoon/palemoon /usr/bin/palemoon
/usr/bin/palemoon
and replace it with the "non-run-as-spot" version.
This seems to be prevented because
/usr/bin/palemoon
is right protected. Also the script
/usr/bin/palemoon.bin
does not use the input arguments that were passed to it by /usr/bin/palemoon and instead just opens the puppy linux home page. This prevents one for instance from opening a specific link as a new tab with the default browser from the command line.
I'm going to patch my installation as follows:
In:
/usr/bin/palemoon
I'm going to replacewithCode: Select all
APP='/usr/bin/palemoon.bin'
This is just a hack since I don't know the intent of these scripts.Code: Select all
APP='/opt/palemoon/palemoon'
this is there just for the first run of palemoon so that it opens the welcome page... after that first run the script is deleted and replaced with a link to the palemoon binary