Thanks Semme, I tried on Xenial 7.5 by installing the pet from mikeb and it works ok without replacing dropbox_uploader.sh with the one I updated.Semme wrote:Xenial 7.5/32b, Fred. Haven't used it recently but it worked fine a few months back.
So it looks to me that on any newer Puppy version than Xenial, dropbox-gui doesn't work, but can be fixed with the above attached dropbox_uploader.sh
(btw, on Xenial 7.5, tried replacing dropbox_uploader.sh with the newer and still works ok, so... strange that you got that error you mentioned above)
@mikeb, this should support filenames with spaces:
Code: Select all
add_selection () {
[ ! -f "$HOME/.dropbox_uploader-$PROFILE" ]&& return
[ $BUTTON = 3 -a ! -h "$DIR/$CHOOSER" ]|| return #symlinks upset uploader...folders now handled...
[ ! "$CHOOSER" ]&& return #otherwise loads folder!
# rxvt -rv --geometry 80x10 -e dropbox_uploader.sh -k -p -f ~/.dropbox_uploader-"$PROFILE" upload $(while read -r line; do echo $DIR/$line; done <<< "$CHOOSER") "$REMOTE_DIR"
# fredx181, handle spaces in filenames
in_term2 () {
while read -r I; do
dropbox_uploader.sh -k -p -f ~/.dropbox_uploader-"$PROFILE" upload "$DIR/$I" "$REMOTE_DIR/$I"
done <<< "$CHOOSER"
sleep 2
}
export -f in_term2
rxvt -rv -geometry 80x10 -e bash -c in_term2
build_remote_list
}