The time now is Thu 23 May 2013, 05:11
All times are UTC - 4 |
| Author |
Message |
Whitesnow

Joined: 20 Nov 2007 Posts: 78 Location: Italy
|
Posted: Fri 24 Jun 2011, 09:12 Post subject:
Back2mydesktop-1.0_x86.pet Subject description: Desktop backuper & recoverer |
|
Hi everybody,
this is my solution to the desktop troubles, i.e. when you add a sfs, and icons lost their alignment.
I prepared two script with GUI. One called "bkp-my-desktop" ("Backup my Desktop", in Puppy menu) and the other one called "desktop-recoverer" ("Recover my Desktop", in Puppy menu).
Some comments from my scripts to explain better, now:
== "bkp-my-desktop" ==
is to backup your desktop icon order and your background. Do this backup everytime you change desktop icon order and/or your background. To recover your desktop, use after this one, "desktop-recoverer" script (look in Desktop menu and search "Recover my Desktop").
== "desktop-recoverer" ==
is to recover your PuppyPin and globincons files from a backup, after a modification on your system (i.e. useful when you add a squash file, sfs). Please, before you run this one, first create a backup, via "bkp-my-desktop" script (look in Desktop menu and search "Backup my Desktop"). Do this backup everytime you change desktop icon order and/or your background.
For the last one, I provide two shots below (first of them appears only if you haven't already backuped first).
For "bkp-my-desktop" script, notice of backup done is non-interactive (just "EXIT" button or 3 seconds timeout), so I didn't shot it.
Interactive GUI is ensured by Gxmessage windows.
Icons are available (with the same name of scripts), to allow to put script links on desktop.
Enjoy!
EDIT: I have just uploaded new shots, same as the script ones (first, I uploaded those ones of beta version, without correct text alignment in Gxmessage windows). Now attached pet is below and download counter is reset. Sorry for inconvenience.
 |
| Description |
Checking if desktop backup exists (Gxmessage window from FIRST step of "Recover my Desktop" script. Note: it appears ONLY if you haven't already backuped first). |
| Filesize |
10.69 KB |
| Viewed |
571 Time(s) |

|
| Description |
Gxmessage window from SECOND step of "Recover my Desktop" script. Note: first notice (see image above) appears ONLY if you haven't already backuped first. |
| Filesize |
7.45 KB |
| Viewed |
574 Time(s) |

|
| Description |
Desktop backuper & recoverer
|

Download |
| Filename |
Back2mydesktop-1.0_x86.pet |
| Filesize |
12.82 KB |
| Downloaded |
237 Time(s) |
_________________ *.* Snow *.*
My repo: http://tinyurl.com/linux-pub-repo
My blog: http://qualapinna.slamp.org
Last edited by Whitesnow on Wed 29 Jun 2011, 08:04; edited 3 times in total
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: Tue 28 Jun 2011, 04:39 Post subject:
|
|
I haven't looked at your script, but you shouldn't need to restart X. You can just do | Code: | killall ROX-Filer
exec rox -p /root/Choices/ROX-Filer/PuppyPin |
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: Tue 28 Jun 2011, 04:44 Post subject:
|
|
Also, Puppy doesn't usually include gxmessage - you might want to make it use xmessage unless gxmessage is available.
e.g. something like this code from the Trash roxapp
| Code: | # Write the confirmation message.
MSG=`which gxmessage` || MSG=xmessage
$MSG -buttons "Delete:21,Cancel" -default Cancel -center -title "Confirm Delete" "$stuff" |
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Whitesnow

Joined: 20 Nov 2007 Posts: 78 Location: Italy
|
Posted: Tue 28 Jun 2011, 08:47 Post subject:
Back2mydesktop in everyday use |
|
Hi disciple, thanks for your replies.
| disciple wrote: | | Code: | killall ROX-Filer
exec rox -p /root/Choices/ROX-Filer/PuppyPin |
|
These commands are useful when you haven't got widgets on your desktop. Last one reloads desktop (sometime with black background, instead of yours :-/), but not add-ons.
In addition, when I thought to Back2mydesktop, I had newbies in mind, no forced terminal use (but you can, I provided names of my scripts) to encourage everybody to approach Puppy Linux, also if it manages sfs archives that change desktop at every new load.
| disciple wrote: | | Also, Puppy doesn't usually include gxmessage - you might want to make it use xmessage unless gxmessage is available. |
Gxmessage is part of Puppy. I didn't install it apart.
Bye.
_________________ *.* Snow *.*
My repo: http://tinyurl.com/linux-pub-repo
My blog: http://qualapinna.slamp.org
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: Tue 28 Jun 2011, 21:09 Post subject:
|
|
| Quote: | | These commands are useful when you haven't got widgets on your desktop. |
Ah, OK. I didn't know that as I don't use Pwidgets.
| Quote: | | Gxmessage is part of Puppy. |
Well, part of the version of Puppy that you happen to be running
In the past it was typically only included in puppies/puplets that weren't made by Barry. It is possible that he also includes it now, but I'd have to check in Wary or Quirky to see.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Whitesnow

Joined: 20 Nov 2007 Posts: 78 Location: Italy
|
Posted: Wed 29 Jun 2011, 07:55 Post subject:
Gxmessage is a standard in Puppy Linux |
|
| Whitesnow wrote: | | Gxmessage is part of Puppy. |
| disciple wrote: | Well, part of the version of Puppy that you happen to be running
In the past it was typically only included in puppies/puplets that weren't made by Barry. It is possible that he also includes it now, but I'd have to check in Wary or Quirky to see. |
Gxmessage is part of Puppy Linux (straight line, I can't talk about Wary and Quirky, but you can check and writing about them here) since end of 2006 (since Puppy Linux 2.12, see http://www.puppylinux.com/news/news211-212.htm and http://www.puppylinux.com/download/release-2.12.htm). So, time has gone to allow me to use it as an ordinary standard in our favorite distro... Don't you agree?
_________________ *.* Snow *.*
My repo: http://tinyurl.com/linux-pub-repo
My blog: http://qualapinna.slamp.org
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: Thu 30 Jun 2011, 02:20 Post subject:
|
|
Actually, no - Barry must have changed his mind after that, because Puppy 4.x does not have gxmessage.
However, I now see that it does have a symlink to xmessage named gxmessage. So your code should work fine.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|