The time now is Tue 18 Jun 2013, 22:00
All times are UTC - 4 |
|
Page 1 of 3 Posts_count |
Goto page: 1, 2, 3 Next |
| Author |
Message |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Tue 06 Mar 2012, 09:22 Post_subject:
WallRefresh-1.4 Sub_title: Always a actual wallpaper. |
|
It's a small program to use a picture from the web as a wallpaper and it refreshes periodically.
You can use e.g. a satellite picture or one from a webcam.. Everytime you have a actual wallpaper.
The program uses gtkdialog4 and it works at least with Slacko 5.3.2.6, Racy 5.2.2.8, Wary 5.2, Lupu-528.004, Lazy Puppy and Akita beta7.
If you install gtkdialog4, it also works with Puppy 4.31, Lupu 525 and probably with others too.
It also works with Pwidgets now, but sometimes there's still a small problem with the background of the analog clock widget.
You start the program with menu->Desktp->WallpaperRefresh Configuration.
- Type in a URL or select one.
- Refresh time determines the time, when the program looks for a newer picture. If it's available, it will be downloaded and the wallpaper will be refreshed. If no newer one is available, nothing happens.
- I added a new entry which will be executed after each refresh. This can be useful if running applications are needing a separate refresh (e.g. wbar)
- "Save refreshes to Log" is good to find out, how often a new picture is available (and if something doesn't work right ).
- "Backup URL file" copies the URL file to URL.bkp.
If you update the program or you delete something by accident, just copy URL.bkp back to URL.
- "Start WallRefresh at boot" should be clear, also "Start WallRefresh now".
If you use Pwidgets, at every refresh a Message pops up, about Syncing.
If you want to suppress this messages, open /usr/sbin/fixwidgets and change
| Code: | | /usr/local/pwidgets/box_splash & | to
| Code: | | # /usr/local/pwidgets/box_splash & |
in my version it is line #39.
No warranty, no money back ! You should make a copy of your save file before testing.
Have fun ,
Rolf
UPDATE WallRefresh 1.4:
- Internationalisation, by now only english and german
- Added stu90's suggestions.
UPDATE WallRefresh 1.3:
- automatic preview
- simple backup function
- changed input from minutes to seconds
- changed 'gtkdialog' to 'gtkdialog4'
UPDATE WallRefresh 1.2:
- an additional entry which will be executed after each refresh
- changed path from /root/ to /usr/local/
- pictures are now in a separate folder
UPDATE WallRefresh 1.1:
- set_bg rewritten (thanks to stu90)
- Pwidgets seems to work now (tested with Lupu-528 and Slacko 5.3.2.6) but it looks very 'sensitive' to me. If a window hides the widgets during refresh, the background of the clock widget will go wrong till next refresh. Also it takes a 'long' time. Not recommended with small refresh rates. I'm not sure about different versions of Pwidget.
- If you changed the wallpaper but there was no new one on the web, the refresh tooks the time till a new picture was on the web. This is solved now.
- I cleaned the code (e.g. Rwallpaper from 9927 B to 2784 B).
Important: If you select a picture which is not available, then the program crashes. In this case you need to select a 'normal' wallpaper first. E.g. right click any icon on the desktop, select 'Backdrop', select any picture and 'Stretch'.
UPDATE wallrefresh-1.0-01.pet:
Fixed "Break by closing with upper right cross"
Added message if gtkdialog4 is not available
 |
| Description |
edited version, Wed Mar 21, 2012 5:41 pm forum time, possible problem with non UTF-8 solved.
|

Download |
| Filename |
wallrefresh-1.4.pet |
| Filesize |
8.01 KB |
| Downloaded |
187 Time(s) |
| Description |
updated version, sorry.
|

Download |
| Filename |
wallrefresh-1.3.pet |
| Filesize |
6.92 KB |
| Downloaded |
174 Time(s) |
| Description |
|
| Filesize |
134.86 KB |
| Viewed |
861 Time(s) |

|
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
Edited_times_total
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 573
|
Posted: Tue 06 Mar 2012, 11:53 Post_subject:
|
|
Really nice tool!
Works fine with Lupu-528.004 also, I just had to change this line:
| Code: | | gtkdialog -p main > $HOME/wallrefresh/.wprefreshrc |
to:
| Code: | | gtkdialog4 -p main > $HOME/wallrefresh/.wprefreshrc |
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Tue 06 Mar 2012, 12:40 Post_subject:
|
|
I'm glad you like it, SFR,
and I really appreciate infos like your's.
It's my very first attempt with gtkdialog, so I wouldn't know.
Thanks,
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 573
|
Posted: Tue 06 Mar 2012, 13:09 Post_subject:
|
|
BTW, I also had to change this line:
| Code: | | ln -s /root/wallrefresh/wallrefresh.sh /root/Startup/wallrefresh |
to:
| Code: | | ln -s /root/wallrefresh/wallrefresh /root/Startup/wallrefresh |
because the symlink created in /root/Startup points to /root/wallrefresh/wallrefresh.sh
and there is wallrefresh (without .sh suffix)
I didn't plunge into the code too much (since I'm relatively new in GtkDialog (and BASH), too ), but after all everything seems to work great, so thanks very much!
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Tue 06 Mar 2012, 13:27 Post_subject:
|
|
Your right SFR,
I've uploaded the edited version. So stupid faults loves me .
Thanks
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
Edited_time_total
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Tue 06 Mar 2012, 14:00 Post_subject:
|
|
| rhadon wrote: | | I've uploaded the edited version. |
May be you did edit the wrong file/line of "gtkdialog"?
Downloaded .pet doesn't work in LazY Puppy (lucid based). If i choose to start the program at boot up, a dead link is created in Startup (goes to /root/wallrefresh/wallrefresh.sh - does not exist. Existing file name is : wallrefresh (no .sh)
I did edit line 82 in wprefresh-config and changed gtkdialog to gtkdialog4 and the application runs.
If i do close the window the applications runs only every second time (at the other time it removes/creates 1/1 the dead link in /root/Startup).
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Tue 06 Mar 2012, 15:03 Post_subject:
|
|
Hi RSH,
I just downloaded myself to be sure. The edited version is OK (at least about the link). Maybe you used the first version and not the edited one?
About gtkdialog vs. gtkdialog4, I'm not sure how to solve this problem. In Racy, gtkdialog is a symbolic link to gtkdialog4. I'll take a look.
Thanks for testing and the info,
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Tue 06 Mar 2012, 15:22 Post_subject:
|
|
In LazY Puppy (lucid) gtkdialog is a symbolic link to gtkdialog3 - that's why the pet does not work after download. Changing described line to gtkdialog4 lets the application run.
The symbolic link in /root/Startup has wrong target (the existing target has no .sh in the name).
I did change that inside the script where the link is created and after that, the link is available.
The issue on closing the window (upper right cross) continues after all changes i had made. After closing the window the file .wprefreshrc doesn't contain usable data!
Data is: EXIT=abort.
EDIT: Did right now download the file again and - nothing has changed.
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 573
|
Posted: Tue 06 Mar 2012, 16:06 Post_subject:
|
|
| RSH wrote: | | If i do close the window the applications runs only every second time [...] |
| RSH wrote: | | The issue on closing the window (upper right cross) continues after all changes i had made. |
That happens to me also, but only when I close the window via x button.
Using No and OK buttons makes it running right.
| RSH wrote: | EDIT: Did right now download the file again and - nothing has changed. |
The dead link problem is weird, rhadon has uploaded corrected version.
Did you download the previous version?
The problem might be the same names of the attachement.
I had similar problem downloading InstantUpdate-004 for Lucid (which was 002 really, and then Playdayz replaced it to 004, but the names were the same);
I had to clear cookies IIRC and download again.
http://www.murga-linux.com/puppy/viewtopic.php?p=593457#593457
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Tue 06 Mar 2012, 16:25 Post_subject:
|
|
| SFR wrote: | Did you download the previous version?
The problem might be the same names of the attachement. |
I did download the first one and did download the updated .pet two times. Second time i did download the updated .pet after my last post and then edited the post.
Line 82 in wprefrsh-config
| Code: | | gtkdialog4 -p main > $HOME/wallrefresh/.wprefreshrc |
writes content of gtkdialog4 data to $HOME/wallrefresh/.wprefreshrc. If closing the window using the right upper cross, gtkdialog contains EXIT=abort, which is not usable data for the Wallrefresh application - but you could use it for
| Code: | if [ "EXIT" = "abort" ]; then
#do things or do not
fi
|
stuff !
Solution could be probably something like that:
| Code: |
gtkdia=$(gtkdialog4 -p main)
if [ "EXIT" = "abort" ]; then
echo "do nothing"
else
echo $gtkdia > $HOME/wallrefresh/.wprefreshrc
...
...
...
fi
|
I did not check this yet, but it should work
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Tue 06 Mar 2012, 16:54 Post_subject:
|
|
The original Lupu-528 (without update) doesn't work because it doesn't have gtkdialog4. Need to update .
Maybe changing "gtkdiakog" to "gtkdialog4" will work in general? I'll test.
Yes, Closing via X breaks .wprefreshrc . I'll change it soon.
It makes sense what SFR writes about downloading. I've never had this problem (Opera), but it's the best explanation, I can think about.
Thanks,
Rolf
Edit: yes RSH, something like that should work. Thanks.
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Tue 06 Mar 2012, 20:14 Post_subject:
|
|
| rhadon wrote: | | The original Lupu-528 (without update) doesn't work because it doesn't have gtkdialog4. Need to update. |
The original Lupu-528 is out! Too many problems (especially at sound)
Lucid Puppy 528-004 does have gtkdialog4 installed in /usr/sbin.
But gtkdialog is a symbolic link to gtkdialog3 in lucid.
| Code: | sh-4.1# /usr/sbin/gtkdialog4 --version
gtkdialog version 0.8.0 (C) 2003-2007 Laszlo Pere, 2011 Thunor
sh-4.1#
|
| Code: | sh-4.1# /usr/sbin/gtkdialog --version
gtkdialog version 0.7.21 (C) 2004, 2005, 2006, 2007 by Laszlo Pere
sh-4.1# |
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Wed 07 Mar 2012, 05:17 Post_subject:
|
|
UPDATE, see first post please.
Fixed "Break by closing with upper right cross" and added a message if gtkdialog4 is not available.
To prevent problems with downloading, I slightly changed the name of the pet .
Have fun,
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Thu 08 Mar 2012, 17:22 Post_subject:
|
|
I just found out that WallRefresh doesn't work with Pwidgets .
I'm working on it .
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: Sat 10 Mar 2012, 10:14 Post_subject:
|
|
WallRefresh 1.1 is out, see 1st post please.
Changes:
- set_bg rewritten (thanks to stu90)
- Pwidgets seems to work now (tested with Lupu-528 and Slacko 5.3.2.6) but it looks very 'sensitive' to me. If a window hides the widgets during refresh, the background of the clock widget will go wrong till next refresh. Also it takes a 'long' time. Not recommended with small refresh rates. I'm not sure about different versions of Pwidget.
- If you changed the wallpaper but there was no new one on the web, the refresh tooks the time till a new picture was on the web. This is solved now.
- I cleaned the code (e.g. Rwallpaper from 9927 B to 2784 B).
Have fun
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
|
|
Page 1 of 3 Posts_count |
Goto page: 1, 2, 3 Next |
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|