Page 1 of 1
Unable to delete "save" desktop icon [SOLVED]
Posted: Wed Apr 28, 2021 11:57 pm
by JASpup
How do we prevent /usr/sbin/save2flash from loading on the desktop?
It's not in the Boot Manager.
The risk of accidentally saving is too high, so I like to run it from a prompt.
When I delete it and save the pupsave, it's there next boot.
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 2:51 am
by PipzDex
JASpup wrote: ↑Wed Apr 28, 2021 11:57 pm
How do we prevent /usr/sbin/save2flash from loading on the desktop?
It's not in the Boot Manager.
The risk of accidentally saving is too high, so I like to run it from a prompt.
When I delete it and save the pupsave, it's there next boot.
Hi @JASpup
Remember that when you use puppy from a usb memory, this creates an icon so that you are saving the session whenever you want, even if you want to eliminate this option it is not possible since you are using puppy under any of the following parameters
1.- your save file is savepup.xfs (X means 2,3,4)
2.- your usb is formatted as fat32
the only way to "remove" the icon you mention, you would have to follow these steps
Create USB with Grub4dos
In this way you create a usb that does not need to be saving session button for two specific reasons
1.- the save file is savefolder
2.- the puppy installation works as an external hard drive, not usb ...
Regarding the type of USB format, I usually use ext4 although they also recommend ext3, I don't know what the difference is but testing will know what it is ...
I hope this answers your question
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 3:01 am
by bigpup
This may work, but you do not tell us what exact Puppy version you are using.!
go to /etc/rc.d/rc.sysinit and edit lines 714-732 by simply commenting them out. These are the lines:
Code: Select all
#echo "MISC. DESKTOP STUFF"
#if [ "$PUPMODE" = "77" ];then #77=multisession cd/dvd.
# if [ "`cat /root/Choices/ROX-Filer/PuppyPin | grep "savesession"`" = "" ];then
# echo '<icon x="768" y="128" label="save">/usr/sbin/savesession-dvd</icon>' >> /root/Choices/ROX-Filer/PuppyPin
# grep -v '/pinboard' /root/Choices/ROX-Filer/PuppyPin > /tmp/PuppyPin-CPY
# cp -fv /tmp/PuppyPin-CPY /root/Choices/ROX-Filer/PuppyPin
# echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin
# fi
#fi
#save button on desktop when booted from flash drive...
#if [ $PUPMODE -eq 3 -o $PUPMODE -eq 7 -o $PUPMODE -eq 13 ];then #pup_rw is tmpfs.
# if [ "`cat /root/Choices/ROX-Filer/PuppyPin | grep "save2flash"`" = "" ];then
# echo '<icon x="768" y="128" label="save">/usr/sbin/save2flash</icon>' >> /root/Choices/ROX-Filer/PuppyPin
# grep -v '/pinboard' /root/Choices/ROX-Filer/PuppyPin > /tmp/PuppyPin-CPY
# cp -fv /tmp/PuppyPin-CPY /root/Choices/ROX-Filer/PuppyPin
# echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin
# fi
#fi
Well, shutdown or reboot and save this change, so it is now part of this file.
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 4:19 am
by JASpup
I will study both of your posts.
To me the big picture is that particular icon is hardwired into a frugal install and is designed to persist despite normal attempts to remove it. The function itself is critical, but that launcher is not so important.
X-series (XFCE) even has a pupsave in the Exit menu, the same way we can restart jwm or the graphical server.
Manually running the save application from terminal works and is a lot more comfortable.
The save icon looks neat but I don't want it.
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 5:10 am
by Marv
JASpup wrote: ↑Thu Apr 29, 2021 4:19 am
To me the big picture is that particular icon is hardwired into a frugal install and is designed to persist despite normal attempts to remove it. The function itself is critical, but that launcher is not so important.
I agree completely. I modify the main menu so save2flash is a line item at the bottom of the menu and in LXDE (all I'm running at the moment) rather than carry a modified rc.sysinit I just add the line
Code: Select all
rm -f /root/Desktop/save2flash.desktop
either to the LXDE startup file in /root/Startup in the slackware derivs or to a little script fix_defaults, also in /root/Startup, that I use in my admittedly odd fossapup64 install to swap some custom scripts in from the ydrv. A kludge but gets the little bugger off the desktop simply.
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 6:44 am
by MochiMoppel
Re: Unable to delete "save" desktop icon
Posted: Thu Apr 29, 2021 6:49 am
by JASpup
Marv wrote: ↑Thu Apr 29, 2021 5:10 am
I agree completely. I modify the main menu so save2flash is a line item at the bottom of the menu and in LXDE (all I'm running at the moment) rather than carry a modified rc.sysinit I just add the line
Code: Select all
rm -f /root/Desktop/save2flash.desktop
either to the LXDE startup file in /root/Startup in the slackware derivs or to a little script fix_defaults, also in /root/Startup, that I use in my admittedly odd fossapup64 install to swap some custom scripts in from the ydrv. A kludge but gets the little bugger off the desktop simply.
Hmmm. I've been in LXDE a bit recently because it co-exists with JWM (unlike any XFCE I've ran).
The XFCE glory is the save is actually in the Exit menu.
With choice I'd take menu over icon, but if I can't get it off the desktop I wouldn't need a second route.
My ~/root/Desktop is empty, perhaps the same problem I'm having with palemoon?: viewtopic.php?p=24003#p24003
(The only SFS loaded at the moment is Firefox Light.)
The startup trick might work too; thanks for the suggestion.