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 Thu 02 Oct 2014, 03:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Desktop-Restore
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 01 Feb 2011, 16:33    Post_subject:  Desktop-Restore
Sub_title: Restores Last Desktop
 

Backs up desktop automatically on shutdown if any changes were made.
After reboot, Menu/Setup/Desktop-Restore restores previous desktop.
Useful after SFS installs, when icons get rearranged.

from terminal: desktop-restore [ -r -b ] restore/backup

not needed from version 2.2: [Note: If you want to use your own rc.shutdown script, just add:
"desktop-restore -b" near the top, after the comments. ]

Version 2.0: deleted the edited copy of rc.shutdown. Instead, during install it opens the current copy with a prompt to edit. Type "desktop-restore -b" near the top after all the initial comments (comments start with "#")
Version 2.1 Spruced up pinstall so it continues or quits with command keys.
Version 2.2 Added backup script to /etc/init.d, so command in rc.shutdown isn't needed (Thanks Rwin & pemasu)
desktop-restore-2.2.pet
Description 
pet

 Download 
Filename  desktop-restore-2.2.pet 
Filesize  2.1 KB 
Downloaded  961 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Wed 02 Feb 2011, 04:56    Post_subject:  

Great idea. Gonna test now.
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 28 Dec 2011, 03:06    Post_subject:  

Version 2.0: Added a pinstall script that opens rc.shutdown for editing during the initial install...vs clobbering with another version. Also, put it in /Menu/Desktop instead of Setup.
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 28 Dec 2011, 16:03    Post_subject:  

Version 2.1 Made pinstall more user friendly
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Sun 04 Mar 2012, 13:41    Post_subject:  

Many thanks jpeps. Very handy solution to an enduring problem.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
tlchost

Joined: 05 Aug 2007
Posts: 1705
Location: Baltimore, Maryland USA

PostPosted: Tue 11 Sep 2012, 11:01    Post_subject: To enable restore desktop at startup  

What do I need to do to have desktop restore run auomaticially at boot up?

Thanks

Thom
Back to top
View user's profile Send_private_message Visit_website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 11 Sep 2012, 11:58    Post_subject: Re: To enable restore desktop at startup  

tlchost wrote:
What do I need to do to have desktop restore run auomaticially at boot up?

Thanks

Thom


Make sure you've added the line "desktop-restore -b" to rc.shutdown.
Back to top
View user's profile Send_private_message 
oldyeller


Joined: 15 Nov 2011
Posts: 808
Location: Mishawaka IN

PostPosted: Tue 11 Sep 2012, 12:01    Post_subject: Re: To enable restore desktop at startup  

jpeps wrote:
tlchost wrote:
What do I need to do to have desktop restore run auomaticially at boot up?

Thanks

Thom


Make sure you've added the line "desktop-restore -b" to rc.shutdown.


I am just curious is -b stand for backup?
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1705
Location: Baltimore, Maryland USA

PostPosted: Tue 11 Sep 2012, 12:07    Post_subject: Re: To enable restore desktop at startup  

jpeps wrote:

Make sure you've added the line "desktop-restore -b" to rc.shutdown.


Now I am confused...that is already in rc.shutdown....I want to
have desktop-restore -r (which I believe is the command to restore
the desktop that was backed up) when the system boots up.

Here, after adding an sfs file...the desktop needs to be manually restored via the menu after a reboot. I'd like it to be automatic.

thanks

Thom
Back to top
View user's profile Send_private_message Visit_website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 11 Sep 2012, 13:06    Post_subject:  

I think /etc/profile.local runs apps after the desktop loads. "desktop-restore -r" restores the backup (desktop-restore -b runs the backup).

note: a script in /root/Startup should also work.

Code:

#!/bin/sh
desktop-restore -r
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1705
Location: Baltimore, Maryland USA

PostPosted: Tue 11 Sep 2012, 15:18    Post_subject:  

jpeps wrote:
I think /etc/profile.local runs apps after the desktop loads. "desktop-restore -r" restores the backup (desktop-restore -b runs the backup).

Yep....placed the script that you mentioned and it works fine. Thanks!
Code:

#!/bin/sh
desktop-restore -r


Quote:

note: a script in /root/Startup should also work.


Ah the beauty of having a backup of the save file! I tried that, and it worked....and worked, and worked, and worked .... every time x restarted it ran the script.

Thom
Back to top
View user's profile Send_private_message Visit_website 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Tue 11 Sep 2012, 15:18    Post_subject:  

Rerwins suggestion which I have used now in dpup.
The code has been placed in /etc/init.d/desktop-backup:
Code:
#!/bin/sh
#Save desktop icon configuration for desktop-restore function.
case $1 in
 stop)
  mkdir /root/.desktop 2>/dev/null
  cp -p /root/Choices/ROX-Filer/PuppyPin  /root/.desktop 2>/dev/null
  cp -p /root/.config/rox.sourceforge.net/ROX-Filer/globicons /root/.desktop 2>/dev/null
 ;;
esac


Cheers.
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1705
Location: Baltimore, Maryland USA

PostPosted: Tue 11 Sep 2012, 16:47    Post_subject:  

pemasu wrote:
Rerwins suggestion which I have used now in dpup.
The code has been placed in /etc/init.d/desktop-backup:


Thanks.
Thom
Back to top
View user's profile Send_private_message Visit_website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 15 Sep 2012, 22:28    Post_subject:  

pemasu wrote:
Rerwins suggestion which I have used now in dpup.
The code has been placed in /etc/init.d/desktop-backup:


pemasu, desktop-restore won't backup in exprimo with your code. It needs a space after "-b" in the rc.shutdown file

Code:

desktop-restore -b# jpeps desktop backup and restore needs this
Back to top
View user's profile Send_private_message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Sun 16 Sep 2012, 04:25    Post_subject:  

This is such a good thing for us crazy people who have multiple frugal installs, and keep changing everything.

It is a must for the toolkit, and should be in every Puppy.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

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