SFStray

Miscellaneous tools
Message
Author
nancy reagan
Posts: 544
Joined: Thu 22 Jan 2009, 14:20

sfs dirloader works in lupu as well

#31 Post by nancy reagan »

Sorry but sfs dirloader seems to work in 5 series as well

http://www.murga-linux.com/puppy/viewtopic.php?t=44601

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#32 Post by seaside »

maxerro wrote:Here's one wipeout version:

Code: Select all

add() {
	echo -e "$APP" >> $HOME/.SFStray/sfstray_list
}
When you hit the Add button while nothing is selected (or there are no SFS files in the required dir) it creates a non-empty "empty" sfstray_list, and when you hit Apply it sends all writable mounted media down the toilet.
maxerro.

Thank you for pointing out that scenario. I've added the following code with an exit to ensure that doesn't happen.

Code: Select all

 umount /mnt/"$P"
 STATUS=$?
 [ $STATUS -ne 0 ] &&  yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "FAILURE! $P could not unmount - Perhaps files are still in use or no directory was specified" && exit
A new pet is attached to the first post.

Thanks again for catching that possibility.

Regards,
s

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#33 Post by seaside »

nooby wrote: Safest is to go through the Menu and not do right click which sometimes shuts down the xorg.
Hi nooby,

I've tried using SFS-exec on Pup525 lately and so far have not experienced any xorg failure. Is there a particular set of conditions for this happening?

Regards,
s

Post Reply