Latest Nathan Wallpaper zapping *.png's ? [SOLVED]

Please post any bugs you have found
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#31 Post by musher0 »

Hello again.

You can find the latest version of my two little backdrop setting utilities for the ROX environment here: http://murga-linux.com/puppy/viewtopic.php?t=85084

Best.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#32 Post by Karl Godt »

musher0 wrote: I did come up with a solution, even though I'm not as advanced a code-writer as you people are.

This is a K.I.S.S. right-click script. It:
*avoids any language (thus any utf decimals ca-fuddle)
* sets any jpg or png at
* only the middle of the screen (it uses ROX's default utility to set the position).
You just took /usr/sbin/set_bg and "sell" it from the outside "as yours" . I am not going to look into your .pet s anymore. In fact, you really might have a .wh. blocking a needed binary or uninstalled one.

/usr/sbin/background_reshape is needed by /root/.xinitrc :

Code: Select all

#w482 reshape background image if widescreen...
[ $PUPMODE -eq 5 ] && /usr/sbin/background_reshape
and truly it was buggy in special circumstances.

This is what i got running a test dpup-001 pfix=ram in /tmp/xerrs.log as an example :
dc: stack underflow
expr: syntax error
/usr/sbin/background_reshape: line 44: [: -ge: unary operator expected
dc: stack underflow
dc: stack underflow
dc: stack underflow
dc: stack underflow
expr: non-numeric argument
/usr/sbin/background_reshape: line 70: pamcut: command not found
/usr/sbin/background_reshape: line 70: jpegtopnm: command not found
/usr/sbin/background_reshape: line 70: pnmtojpeg: command not found
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#33 Post by musher0 »

Karl Godt wrote:
> You just took /usr/sbin/set_bg and "sell" it from the outside "as yours" . I am not going to look into your .pet s anymore. In fact, you really might have a .wh. blocking a needed binary or uninstalled one.

Hello, Karl.

Think what you will. I'll simply re-state here the edit of my previous message.

Edit in reaction to Karl's comment, top of next page.
Indeed, I only have the merit of an "arranger" rather than that of a "composer", since it is an adaptation of the existing set_bg routine in Nathan's wallpaper utility, which in turn is itself an adaptation of the routine quoted in the ROX-Filer Manual, Appendix C. SOAP RPC.


So, given that the ultimate source is the ROX-Filer manual itself, it is very unlikely that use my little backdrop utilities will provoke "a .wh. blocking" of anything.

I apologize for not having been clearer earlier.

Beware of attacking anybody's reputation, Karl. "it might come back to bite you", as the English proverb says.

Respectfully submitted,

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply