Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 12:11
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Back2mydesktop-1.0_x86.pet
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
Whitesnow


Joined: 20 Nov 2007
Posts: 100
Location: Italy

PostPosted: 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! Smile

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. Smile
checking_if_bkp_exists.png
 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   775 Time(s)

checking_if_bkp_exists.png

recoverer.png
 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   697 Time(s)

recoverer.png

Back2mydesktop-1.0_x86.pet
Description  Desktop backuper & recoverer
pet

 Download 
Filename  Back2mydesktop-1.0_x86.pet 
Filesize  12.82 KB 
Downloaded  327 Time(s) 

_________________
*.* Snow *.* Wink
My repo: http://qualapinna.dyndns.org/repo
My blog: http://qualapinna.dyndns.org

Last edited by Whitesnow on Wed 29 Jun 2011, 08:04; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6424
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6424
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
Whitesnow


Joined: 20 Nov 2007
Posts: 100
Location: Italy

PostPosted: Tue 28 Jun 2011, 08:47    Post subject: Back2mydesktop in everyday use  

Hi disciple, thanks for your replies. Smile
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 *.* Wink
My repo: http://qualapinna.dyndns.org/repo
My blog: http://qualapinna.dyndns.org
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6424
Location: Auckland, New Zealand

PostPosted: 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 Wink
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
View user's profile Send private message 
Whitesnow


Joined: 20 Nov 2007
Posts: 100
Location: Italy

PostPosted: 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 Wink
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? Wink

_________________
*.* Snow *.* Wink
My repo: http://qualapinna.dyndns.org/repo
My blog: http://qualapinna.dyndns.org
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6424
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

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
[ Time: 0.0693s ][ Queries: 13 (0.0103s) ][ GZIP on ]